call django.setup() for standalone usage
Project description
Installation
$ [sudo] pip install django-standalone-setup
Features
calls django.setup
once only
Config
$ export DJANGO_SETTINGS_MOULE='django_settings'
site-package/django_settings.py
INSTALLED_APPS = [
'your_app',
]
DATABASES = {
'default': {
...
}
}
Examples
script.py
# !/usr/bin/env python
import django_standalone_setup # at the top of module
...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-standalone-setup-2019.4.13.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 194d554ac6ef4bd9a0f4e79e93545aa95bb6c27f995e537752fef6c3dcd9bddc |
|
MD5 | 5d56612b0636def9cd6be6b0aa84aebb |
|
BLAKE2b-256 | b58b025fee15cead0add5e81630fcc3d392997effea49328184403b0f69b65d8 |