The Django-related reusable app provides the ability to store settings in a database and configure settings via an admin interface.
Project description
Introduction
django-fs-livesettings is the Django-related reusable app provides the ability to store settings in a database and configure settings via an admin interface.
Installation
Install django-fs-livesettings using pip:
$ pip install django-fs-livesettings
Add the 'livesettings' application to the INSTALLED_APPS setting of your Django project settings.py file:
INSTALLED_APPS = (
...
'livesettings',
...
)
Add LIVESETTINGS_CONF to a settings.py file:
LIVESETTINGS_CONF = (
('MY_SETTING_1', 'email', u'Description of this setting.'),
('MY_SETTING_2', 'char', u'Description of this setting.'),
)
where, first parameter is a setting’s name, second — it’s type and third — description.
List of types:
boolean char date datetime decimal email file image integer time url
Usage
Just import livesttings and call that setting you want:
from livesettings.conf import livesettings print(livesettings.MY_SETTING_1)
Credits
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_fs_livesettings-1.0.0.tar.gz.
File metadata
- Download URL: django_fs_livesettings-1.0.0.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f40eb1bab8bf9e803ba887b6427f79c46137ed9179f8ff294db362e1aa585622
|
|
| MD5 |
04e9d6d9d55c2a432fa2964a911c5082
|
|
| BLAKE2b-256 |
2c027b804fda129f7e3bd8b72a62a7f81abd4df6dd6afc418bb990aa1bf0cbae
|
File details
Details for the file django_fs_livesettings-1.0.0-py3-none-any.whl.
File metadata
- Download URL: django_fs_livesettings-1.0.0-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7a21ed4f61a67aa2384500f414711176254db6d9deb013cf12c80e4e7159d0b
|
|
| MD5 |
d5b062b43165afa3b9e051dd30912a3c
|
|
| BLAKE2b-256 |
812c64cac07dff4fe39c8f932426bbd8536e7d993213c202d78eb727c1ea759a
|