{"repo":"mikeengland/django-setty","free":true,"listed":false,"github":"https://github.com/mikeengland/django-setty","clone":"git clone https://github.com/mikeengland/django-setty.git","description":"Configure settings dynamically in the Django Admin console","language":"Python","stars":11,"topics":["django","dynamic","settings","admin","live","cache","database","configuration","setty","django-setty"],"license":"MIT","category":"databases-storage","readme_excerpt":"django-setty ============== Django-Setty allows you to dynamically change settings inside the Django Admin Console. The app provides both a database and a cache backend for storing and retrieving your settings. Requirements ------------ Python 3.6+ Django 2.0+ Continuous integration currently tests Django = v2. Installation ------------ Django Configuration -------------------- Add setty to the list of INSTALLED APPS in your Django settings: Create the Setty database table by running Specify the backend to use using the SETTY BACKEND setting. The valid backend values are 'DatabaseBackend' and 'CacheBackend' . 'DatabaseBackend' always accesses the database when retrieving settings. 'CacheBackend' only accesses the database if the item is not in the cache, and caches the value once retrieved. Define the length of time settings should be cached for using the SETTY CACHE TTL setting. The default cache TTL is one hour. Usage Examples -------------- Open the Django admin console at /admin and open Setty Settings . Here, you will see the list of all settings defined in Setty. To add a new setting, click the add button. Enter the setting name, type (String, Integer, Float, Boolean, List, Dictionary) and the value. Note, the List and Dict data type expect the data to be in the JSON format e.g. {\"a\": 1, \"b\": 2} and [1, 2, 3] . Once settings have been created, you will be able to access these in your code. If the setting does not exist in the database, the value defined in the setting S","default_branch":null,"files":null,"tree":[],"storefront":"/r/mikeengland","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mikeengland/django-setty/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}