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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for djangoautoconf-2.0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e4256fc9694fa32e1245339687f38851366a5ef1c99aa7175a9d7047c5afc7b |
|
MD5 | c62c2f4ffacace70d2d1dd3f247f6b1d |
|
BLAKE2b-256 | 265d030c62e7a4a01491aaff0bb7af6926a39cc657ea21d1c8da715260e6af03 |