Skip to main content

Create a package to ease setting django project settings.

Project description

https://badge.fury.io/py/djangoautoconf.png https://travis-ci.org/weijia/djangoautoconf.png?branch=master https://pypip.in/d/djangoautoconf/badge.png

Create a package for ease setting django project settings.

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

### Ҿ ñĿãӭһ衣

weijia2000

History

0.11.4 (2019-08-02) * Remove unnecessary requirements

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

Uploaded Source

Built Distribution

djangoautoconf-2.0.2-py2.py3-none-any.whl (71.8 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: djangoautoconf-2.0.2.tar.gz
  • Upload date:
  • Size: 43.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.5

File hashes

Hashes for djangoautoconf-2.0.2.tar.gz
Algorithm Hash digest
SHA256 dc8690fea8eef79df905a63079253e2c64a33993517084efac979db476440e38
MD5 d4ceebf2579ebb060a443d4e4281d1d1
BLAKE2b-256 c22941398385ada3f8cdcfbc20f41c20b95f29d8eb961a0aad7a0ae30a2d3714

See more details on using hashes here.

File details

Details for the file djangoautoconf-2.0.2-py2.py3-none-any.whl.

File metadata

  • Download URL: djangoautoconf-2.0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 71.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.5

File hashes

Hashes for djangoautoconf-2.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 cbde240f07433660a514119f70dcff2a4627ac9bf7ef8a7cb1891ba8ea951558
MD5 c1435dfd3ebb8a1e8a51d9b7e651626e
BLAKE2b-256 60ee37eaa75af8e2a2c3ba129faa39d5ea60a86c411ca34d200f44e1da038ecf

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