A small app providing a tesseract field for django 3.1.2
Project description
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.
django-tesseractfield
This module fills the need of having a tesseractfield that's usable in both django models and forms.
Makes use of tesseract.
Installation
- Run
pip install django-tesseractfield
- Add
tesseractfield
to yourINSTALLED_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.
Source Distribution
djtesseract-0.0.3.tar.gz
(5.5 kB
view hashes)
Built Distribution
Close
Hashes for djtesseract-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0cea4f424fb8c348742f87af9439b9953f3024066771818108630b00f12c4361 |
|
MD5 | c66cc96d95b2270a0eb134f6307486a3 |
|
BLAKE2b-256 | 4e95ce2af7e68ec82116a97bb08684a2c5cb6024fd2c0c1fee3292931c728dbf |