Skip to content

YlmRdm/django-tesseractfield

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyPI version

djtesseract

This repo forked from (https://github.com/duboisR/django-tesseractfield) to update last release versions of packages, framework, and Python.

Repo created by @duboisR originally.

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

djtesseract

Makes use of tesseract.

Installation

  • Run pip install djtesseract
  • 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

About

A small app providing a tesseract field for django

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 93.0%
  • JavaScript 5.9%
  • HTML 1.1%