Skip to main content

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.

Project details


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.8.0.tar.gz (52.0 kB view details)

Uploaded Source

File details

Details for the file djangoautoconf-1.8.0.tar.gz.

File metadata

  • Download URL: djangoautoconf-1.8.0.tar.gz
  • Upload date:
  • Size: 52.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.14

File hashes

Hashes for djangoautoconf-1.8.0.tar.gz
Algorithm Hash digest
SHA256 e79e7597dbc05f47b4f3b2e459735b178d36fff7fda5082b75522d9df3c902dd
MD5 767a50a4c8bd38b34811ddde2f79a137
BLAKE2b-256 19e84f6bd77b6bfd3d9f795e90981b8f5acad01ee44aae16950a5e383447db7d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page