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
Metadata
Release files for django-fs-livesettings 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django_fs_livesettings-1.0.0.tar.gz | 5.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_fs_livesettings-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.7 kB
Release files / django_fs_livesettings-1.0.0.tar.gz
| Download URL | django_fs_livesettings-1.0.0.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f40eb1bab8bf9e803ba887b6427f79c46137ed9179f8ff294db362e1aa585622
|
|
BLAKE2b-256 checksum How to use checksums |
2c027b804fda129f7e3bd8b72a62a7f81abd4df6dd6afc418bb990aa1bf0cbae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.3
|
Release files / django_fs_livesettings-1.0.0-py3-none-any.whl
| Download URL | django_fs_livesettings-1.0.0-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c7a21ed4f61a67aa2384500f414711176254db6d9deb013cf12c80e4e7159d0b
|
|
BLAKE2b-256 checksum How to use checksums |
812c64cac07dff4fe39c8f932426bbd8536e7d993213c202d78eb727c1ea759a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.3
|