Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

A small app providing a tesseract field for django

Project description

PyPI version

django-tesseractfield

This module fills the need of having a tesseractfield that's usable in both django models and forms.

django-tesseractfield

Makes use of tesseract.

Installation

  • Run pip install django-tesseractfield
  • Add tesseractfield to your INSTALLED_APPS
  • Collect static files with ./manage.py collectstatic

Usage

To activate tesseract transcription on your Django site, add this line to your URLconf:

path('', include('tesseractfield.urls')),

In your models, you can use it like this:

from django.db import models
from tesseractfield.fields import TesseractField

class MyModel(model.Model):
    content = TesseractField()

In your foms, you can use it like this:

from django import forms
from tesseractfield.fields import TesseractWidget

class MyForm(forms.Form):
    content = forms.Textarea()

    class Meta:
        widgets = {
            'content': TesseractWidget(),
        }

Maintainers

Articles

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-tesseractfield, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size django-tesseractfield-0.0.2.tar.gz (5.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page