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
### 向我捐助 如果你觉得本项目对你有用,欢迎请作者一杯茶。
- Work around for module installation.
‘django-ajax-selects<=1.9.1’ ‘python-social-auth<=0.2.21’
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-2.0.7.tar.gz
(47.6 kB
view details)
File details
Details for the file djangoautoconf-2.0.7.tar.gz
.
File metadata
- Download URL: djangoautoconf-2.0.7.tar.gz
- Upload date:
- Size: 47.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0022c910f4138959a290d9079762c4b15b8e2b47aab7ad7bed360c49f2084b6d |
|
MD5 | 8520eec4df0f29c884926844b0f66ff8 |
|
BLAKE2b-256 | e6fefbac910d17b448b375a98309f76931fb7bae108d32bd65e6013080c81da2 |