Skip to main content

Effortless class-based settings for Django.

Project description

django-class-settings

pypi-image django-version-image python-version-image license-image code-style-image

django-class-settings aims to simplify complicated settings layouts by using classes instead of modules. Some of the benefits of using classes include:

Example

from class_settings import Settings, env


class MySettings(Settings):
    SECRET_KEY = env()
    DEBUG = env.bool(default=False)
    INSTALLED_APPS = [
        'django.contrib.admin',
        'django.contrib.auth',
        'django.contrib.contenttypes',
        'django.contrib.sessions',
        'django.contrib.messages',
        'django.contrib.staticfiles',
    ]
    ROOT_URLCONF = 'myproject.urls'
    WSGI_APPLICATION = 'myproject.wsgi.application'

Installation

Install it from PyPI with pip:

pip install django-class-settings

Requirements:

  • Django 1.11+
  • Python 3.4+

Resources

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-class-settings, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size django_class_settings-0.1.2-py3-none-any.whl (16.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size django-class-settings-0.1.2.tar.gz (6.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page