Django

Integration with Django.

Setup

  1. Set up Django project.

  2. Create a file (generally called pyotconf.py) under any project module.

  3. Configure the models and pipelines inside this file.

  4. Add pyot to the INSTALLED_APPS of the project settings.py file.

  5. Add the file path of the configuration file to a new settings.py variable PYOT_CONFS (list or iterable).

INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'pyot',
]
PYOT_CONFS = ['mysite.pyotconf.py']

The variable PYOT_CONFS can accept multiple files in case configurations are organized in separated files.

Views

Last updated