django-configurations autoenv
Project description
Installation
$ [sudo] pip install django-configurations-autoenv
How it works
- environment variable must be prefixed with
DJANGO_
True
values:'yes'
,'y'
,'true'
,'1'
False
values:'no'
,'n'
,'false'
,'0'
- list values: must contain a comma
,
settings.py
from configurations import Configuration
from django_configurations_autoenv import AutoenvMixin
class Base(AutoenvMixin,Configuration):
from django_configurations_autoenv import AutoenvConfiguration
class Base(AutoenvConfiguration):
.env
DJANGO_STATIC=/static/
DJANGO_ALLOWED_HOSTS=domain1.com,domain2.com
DJANGO_DEBUG=false
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-configurations-autoenv-2020.10.26.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4bf95689d11815dd0e2c524d4af2e21fcaaab15e5c7aae23c6580977922d5c7f |
|
MD5 | e2437975272eec1a3617517de783a542 |
|
BLAKE2b-256 | 1ebe8b15bcc8c83519d3c9d64543095080db89da04ef3cd7e09b1eea3ba9c1f0 |