Django
Integration with Django.
Setup
Set up Django project.
Create a file (generally called
pyotconf.py
) under any project module.Configure the models and pipelines inside this file.
Add
pyot
to theINSTALLED_APPS
of the projectsettings.py
file.Add the file path of the configuration file to a new
settings.py
variablePYOT_CONFS
(list or iterable).
The variable PYOT_CONFS
can accept multiple files in case configurations are organized in separated files.
Views
If wsgi is used (unsure about asgi), it is forced to run async views in threads, make sure to use resource managers for graceful handling of resources, refer to Cores -> Resources.
Last updated