Skip to main content

Pluggable configuration setup used with the django management command

Project description

1 Welcome to django_setup_configuration’s documentation!

Version:

0.3.0

Source:

https://github.com/maykinmedia/django-setup-configuration

Keywords:

Configuration

PythonVersion:

3.10

Build status Code quality checks black Coverage status Documentation Status

python-versions django-versions pypi-version

Manage your configuration via django command.

2 Features

  • management command, which runs the ordered list of all configuration steps

3 Installation

3.1 Requirements

  • Python 3.10 or above

  • Django 3.2 or newer

3.2 Install

  1. Install from PyPI

pip install django-setup-configuration
  1. Add django_setup_configuration to the INSTALLED_APPS setting.

4 Usage

  1. Create configurations steps based on BaseConfigurationStep class.

  2. Specify these steps in SETUP_CONFIGURATION_STEPS setting.

  3. Run setup_configuration management command manually or put it in the init container during deployment.

5 Local development

To install and develop the library locally, use:

pip install -e .[tests,coverage,docs,release]

When running management commands via django-admin, make sure to add the root directory to the python path (or use python -m django <command>):

export PYTHONPATH=. DJANGO_SETTINGS_MODULE=testapp.settings
django-admin check
# or other commands like:
# django-admin makemessages -l nl

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

django_setup_configuration-0.3.0.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

django_setup_configuration-0.3.0-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file django_setup_configuration-0.3.0.tar.gz.

File metadata

File hashes

Hashes for django_setup_configuration-0.3.0.tar.gz
Algorithm Hash digest
SHA256 2fc20737909dd7ac92a80e3993236091cbfab751d646da45a9ca45950b123012
MD5 94e68a2d5f067291381b063abf279eae
BLAKE2b-256 f1d75adafecc1921e9a65627c23d486763bea8bef6cf32238e233c2aa3bcf8db

See more details on using hashes here.

File details

Details for the file django_setup_configuration-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_setup_configuration-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 769ae660b0221f0a6308bc665636787360528acde1f78794b981677cd17ba67c
MD5 00ac12f7952ebfc8349fd0e7fcb2948e
BLAKE2b-256 08e6fec656ecaa0b3b8ce9107bd0eaac6f116a85c30866fc6a3f8df568724b58

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