Create a package to ease setting django project settings.
Project description
Create a package for ease setting django project settings.
Free software: BSD license
Documentation: http://djangoautoconf.rtfd.org.
Installation
python setup.py install
Create Project
Create manage.py Added the following: #!/usr/bin/env python import logging import os import sys from ufs_tools import get_sibling_folder from ufs_tools.folder_tool import get_file_folder from ufs_tools.libtool import include_all_direct_sub_folders_in_sibling # include_all_direct_sub_folders_in_sibling(__file__, "server_base_packages") if __name__ == "__main__": # logging.basicConfig(level=logging.DEBUG) logging.getLogger('chronograph.models').setLevel(level=logging.DEBUG) from djangoautoconf import DjangoAutoConf # Additional settings can be made # os.environ["EXTRA_SETTING_FOLDER"] = get_sibling_folder(__file__, "local/local_postgresql_settings") # os.environ["MANAGE_PY"] = "manage_with.py" DjangoAutoConf.set_settings_env() from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
Features
r = AdminRegister() r.register(UserDefinedModel)
Default behavior
When “/” is not defined, redirect to all_login app if it is added to INSTALLED_APPS
TODO
History
0.11.4 (2019-08-02) * Remove unnecessary requirements
0.1.0 (2013-08-11)
First release on PyPI.
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
djangoautoconf-1.11.9.tar.gz
(43.2 kB
view details)
Built Distribution
File details
Details for the file djangoautoconf-1.11.9.tar.gz
.
File metadata
- Download URL: djangoautoconf-1.11.9.tar.gz
- Upload date:
- Size: 43.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96a5f9cc2f196300b08848be4498e679e28aee93ce637544eb7d4504703421cf |
|
MD5 | e86d433ae90b82b1059bd5c457a67f09 |
|
BLAKE2b-256 | 8814d552ca5c25f529957462e8bd7318c1d1423d9c3ce0de8523cbc6a92b044a |
File details
Details for the file djangoautoconf-1.11.9-py2.py3-none-any.whl
.
File metadata
- Download URL: djangoautoconf-1.11.9-py2.py3-none-any.whl
- Upload date:
- Size: 71.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | af31e87a26c1a2d8880cd0638654f6fff09e66c150e73a08a5fef268e5dad153 |
|
MD5 | 4ee6fee93462bb9f382648b3f0b3a7e1 |
|
BLAKE2b-256 | dad61cf5f02751c3639c77cad98acf77bc9e5971d506f5469a447a42279de33d |