Dynamic Settings that can be edited in the Django admin panel
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dynamic_setting
testproj
.gitignore
.travis.yml
LICENSE.txt
MANIFEST.in
README.md
manage.py
requirements_2_7.txt
setup.py

README.md

Build Status License PyPI

django-dynamic-settings

Installation

Install via Pip:

$ pip install django-dynamic-settings

Add module to Installed Apps:

INSTALLED_APPS = (
	...
	'dynamic_setting',
	...
)

Migrate

$ ./manage migrate dynamic_setting

Usage

Inside Python:

import dynamic_setting.models import Setting

setting = Setting.objects.setting('NAME_OF_SETTING')

# Get the name of the setting object:
setting.name

# Get the data of the setting object:
setting.data

Inside Template:

{% load dynamic_setting_tag %}

{% get_setting 'NAME_OF_SETTING' %}