django_ocr_server/conf.py

The settings manager of django_ocr_server.

django_ocr_server/conf.py

The settings manager for django_ocr_server.

Usage:

from django_ocr_server.conf import ocr_settings
# Next line will print a value of **OCR_TESSERACT_LANG**
# using the variable from the Django's *settings.py* file
# if the variable is set there.
# Or the default value of **OCR_TESSERACT_LANG** from
# *django_ocr_server/default_settings.py* otherwise.
print(ocr_settings.OCR_TESSERACT_LANG)
Author: shmakovpn <shmakovpn@yandex.ru>
Date: 2021-01-20
class django_ocr_server.conf.DjangoOcrSettings[source]

The settings manager of django_ocr_server

django_ocr_server.conf.ocr_settings = <django_ocr_server.conf.DjangoOcrSettings object>

The instance of settings manager of django_ocr_server