Create a package for ease setting django project settings.
Project description
===============================
Django AutoConf
===============================
.. image:: https://badge.fury.io/py/djangoautoconf.png
:target: http://badge.fury.io/py/djangoautoconf
.. image:: https://travis-ci.org/weijia/djangoautoconf.png?branch=master
:target: https://travis-ci.org/weijia/djangoautoconf
.. image:: https://pypip.in/d/djangoautoconf/badge.png
:target: https://crate.io/packages/djangoautoconf?version=latest
Create a package for ease setting django project settings.
* Free software: BSD license
* Documentation: http://djangoautoconf.rtfd.org.
Installation
------------
::
python setup.py install
Create Poject
------------
::
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.1.0 (2013-08-11)
++++++++++++++++++
* First release on PyPI.
Django AutoConf
===============================
.. image:: https://badge.fury.io/py/djangoautoconf.png
:target: http://badge.fury.io/py/djangoautoconf
.. image:: https://travis-ci.org/weijia/djangoautoconf.png?branch=master
:target: https://travis-ci.org/weijia/djangoautoconf
.. image:: https://pypip.in/d/djangoautoconf/badge.png
:target: https://crate.io/packages/djangoautoconf?version=latest
Create a package for ease setting django project settings.
* Free software: BSD license
* Documentation: http://djangoautoconf.rtfd.org.
Installation
------------
::
python setup.py install
Create Poject
------------
::
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.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-0.6.34.zip
(104.0 kB
view details)
Built Distribution
File details
Details for the file djangoautoconf-0.6.34.zip
.
File metadata
- Download URL: djangoautoconf-0.6.34.zip
- Upload date:
- Size: 104.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7047355e36fa2c7e9a6ee96fcd22a82cd54ad66a9c49b15cae468e4dc3cf3f1c |
|
MD5 | 96a447680b8d00db11780f820e1018f3 |
|
BLAKE2b-256 | 00b84bd7ee9ecc47ed0b21438d621f7e317d272fbc5735727712afb47cb1fb0e |
File details
Details for the file djangoautoconf-0.6.34-py2-none-any.whl
.
File metadata
- Download URL: djangoautoconf-0.6.34-py2-none-any.whl
- Upload date:
- Size: 97.5 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1cb891c67542e47ff6e464e205e4ff4716170f0a025859061097a89ca43b708 |
|
MD5 | fe8329ff6dc19e64897e94a336a6692f |
|
BLAKE2b-256 | d09fcc1189df1cfde5bf8d17933b8a1093baf857cce9b385ad5520edc784594e |