Skip to main content

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.

Source Distribution

django-tesseractfield-0.0.2.tar.gz (5.0 kB view details)

Uploaded Source

File details

Details for the file django-tesseractfield-0.0.2.tar.gz.

File metadata

  • Download URL: django-tesseractfield-0.0.2.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/36.5.0.post20170921 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.3

File hashes

Hashes for django-tesseractfield-0.0.2.tar.gz
Algorithm Hash digest
SHA256 1caf9ad04df806952586874a5e80e40535e52565a9b1aa9f4e089bea209a0f68
MD5 ecc49ba5cdc9c357cdbb9b658b68c2dd
BLAKE2b-256 10dda3d6776a4c5dc1b716d0e1863dade1895ffa10f6f68ed6ed67188b7bb581

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page