Skip to main content

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

readme42.com

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

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