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
Built Distribution
Close
Hashes for django-standalone-setup-2019.3.14.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 400e0aa40bc0c24f0550c8fd5ec534ad0a34afe4589675519f78843f2487996e |
|
MD5 | 50a369e9ab9c4edc246cc7292219d787 |
|
BLAKE2b-256 | dd4112493a538c4458c515e30978bf3e814d280290d097dee480299abd68a7db |
Close
Hashes for django_standalone_setup-2019.3.14-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c923196f323b978dfd381b45ef0cc91bce5a8e3a093c88660b78b1732435ee2 |
|
MD5 | f8d75bc2e7d6dfa509cebb302f70a903 |
|
BLAKE2b-256 | 64e8331834127495529fa759c6acabf3f8a56041696bde3ac904ff50afea113c |