Skip to main content
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.

Metadata

Release files for djangoautoconf 2.0.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for djangoautoconf 2.0.11
File Size Uploaded Provenance Actions
djangoautoconf-2.0.11.tar.gz 47.3 kB Without provenance Details for djangoautoconf-2.0.11.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for djangoautoconf 2.0.11
File Interpreter ABI Platform Actions
djangoautoconf-2.0.11-py3-none-any.whl Python 3 none any Details for djangoautoconf-2.0.11-py3-none-any.whl

Total release size: 119.5 kB

Release files / djangoautoconf-2.0.11.tar.gz

Download URL djangoautoconf-2.0.11.tar.gz
Size 47.3 kB
Tags Source
SHA-256 checksum
How to use checksums
71ec7db39b5dd169a5412f727165a2c0a8a2eed41c100b8553861fa192fee30a
BLAKE2b-256 checksum
How to use checksums
d0b5fcbabc1bd7c3ff149edda85cd8f36ec556dd28f7a29d457e0f22562226fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.3

Release files / djangoautoconf-2.0.11-py3-none-any.whl

Download URL djangoautoconf-2.0.11-py3-none-any.whl
Size 72.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e11a37148908fb7a92c205bd73c68e83ed0f818284f09ee1790ce08c7cfc6403
BLAKE2b-256 checksum
How to use checksums
9f88ae40ac5b595be1f59ba8462849603be72dac61dfc5b722340b4b6e769db9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.3

Security for djangoautoconf 2.0.11

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.0.11 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page