call django.setup() for standalone usage
Project description
Install
$ [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
...
readme-md - README.md generator
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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2626a4d81055c5e4691efd6bf834abf9ae4efa8eba84c6aa28f4f3682dc3eaf |
|
MD5 | e6d053e824529961e65d0bb1543a00a2 |
|
BLAKE2b-256 | 2905ad8d3b00c77607b39669ac219a070b6bb2a26b1d4cb7b010ea7fab7fe16d |
Close
Hashes for django_standalone_setup-2019.3.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bec7f1c2d633eaa2a2d6972b9b10e13112dc3c7c04a01f5dae33d32a66aa70e7 |
|
MD5 | 5427473f832eaeff2726226c89cf89bb |
|
BLAKE2b-256 | 092661e47c43dbced146d8240720364c50849c9e85353d28f1f2c9330f0dd2bf |