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

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


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

Uploaded Source

Built Distribution

djangoautoconf-2.0.10-py3-none-any.whl (72.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: djangoautoconf-2.0.10.tar.gz
  • Upload date:
  • Size: 47.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.3

File hashes

Hashes for djangoautoconf-2.0.10.tar.gz
Algorithm Hash digest
SHA256 9af18b2051568adff1f60f218cde07d36cb52956d8f63e7ad4f8edd6455f85bd
MD5 0ae8587627e26fbb4753d51c08070e32
BLAKE2b-256 7e58368183d94790f4b27619e995303b9c650dfbdf4dfc8b21d98d419bbc0426

See more details on using hashes here.

File details

Details for the file djangoautoconf-2.0.10-py3-none-any.whl.

File metadata

File hashes

Hashes for djangoautoconf-2.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 bf596dbdc079a2dd26345f3840f1ef65a3249c81b3a80bfba1a09b65ea843523
MD5 9a84de30c03c7087e8b805450385c406
BLAKE2b-256 3003c682fb9357afca327e4910197d84e7260a22b103047fc718f3813c664b77

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