Skip to main content

A Django app to manage project configuration files.

Project description

Django Confidence

Django Confidence is a Django app to make configuration files automatically.

This app is developed to help developers create their own layout to configuration files quick and simple with built-in dictionaries or by using configuration presets (that make it even more easier).

Quick start

1. Add "confidence" to your INSTALLED_APPS setting like this::


2. In your import "Configuration" class from "confidence" package like this::

from confidence import Configuration

3. Create a dictionary of config fieldsets like this::

markup = {
'section': {
'option': 'value'

'project': {
'project_name': 'Awesome Project',

4. In your create a variable called PROJECT_CONF and fill it with a Configuration instance::

PROJECT_CONF = Configuration(filepath:str, markup:dict)

4.1 Optional. You can use library of preset configuration files by importing from conf.presets. Example::

from confidence import Configuration
from confidence.presets import ProjectPreset, OptionsPreset

PROJECT_CONF = Configuration.compile_from_presets(filepath, [
ProjectPreset(name='Awesome Project', version='1.0', site_url='http://awesome!'),
OptionsPreset(debug=True, allowed_hosts=['']),

5. Run python makeconf. Configuration file will be created.

6. Edit your configuration file as you want to.

7. Use it in your by using get-like methods::

PROJECT_NAME = PROJECT_CONF.get('project', 'project_name')
DEBUG = PROJECT_CONF.get_bool('options', 'debug')
ALLOWED_HOSTS = PROJECT_CONF.get_csv('options', 'allowed_hosts')

8. Enjoy!

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-confidence, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size django-confidence-0.1.0.tar.gz (4.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page