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.22.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e59377685701ec17a45d1204b7fa760334890e46de047e376acdbd88ddf7e84 |
|
MD5 | d23228d50715a186311ca4b02fd5bf3d |
|
BLAKE2b-256 | 07c139e4276ea784a8a119290b202950c943b067726b2595b97101edd72a9039 |
Close
Hashes for django_standalone_setup-2019.3.22-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fbab180ea3e73daa5bfa23ca5488bb9a3dfea6ad7ad5bc7fee7c132991302f6 |
|
MD5 | 4452dd1af02cf7cde7fd61cb33509664 |
|
BLAKE2b-256 | d9d6cadb2e0b8f614b617630f15c4edd95e0ea060c8e60410ac26c4867e7bd2a |