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-2020.7.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ff2ae62434ec2efdd7d28bdf32fff2e83e1ced8a2c82bbd9ae39086afe4cacf |
|
MD5 | c942debb3ecd07b7f64c95fee5e12267 |
|
BLAKE2b-256 | ba68f8cedc530b1e22d08bb073016c977ffe505b8c3b701c49f5fde5a6282add |