Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/agateblue/django-dynamic-preferences
Dynamic global and instance settings for your django project
https://github.com/agateblue/django-dynamic-preferences
configuration django python python2 python3 settings
Last synced: 5 days ago
JSON representation
Dynamic global and instance settings for your django project
- Host: GitHub
- URL: https://github.com/agateblue/django-dynamic-preferences
- Owner: agateblue
- License: bsd-3-clause
- Created: 2015-06-19T15:47:31.000Z (over 9 years ago)
- Default Branch: develop
- Last Pushed: 2024-04-13T09:50:51.000Z (9 months ago)
- Last Synced: 2024-12-20T11:05:30.507Z (7 days ago)
- Topics: configuration, django, python, python2, python3, settings
- Language: Python
- Homepage: https://django-dynamic-preferences.readthedocs.org/
- Size: 824 KB
- Stars: 351
- Watchers: 12
- Forks: 87
- Open Issues: 20
-
Metadata Files:
- Readme: README.rst
- Changelog: HISTORY.rst
- Contributing: CONTRIBUTING.rst
- License: LICENSE
- Authors: AUTHORS.rst
Awesome Lists containing this project
- awesome-translation - django-dynamic-preferences
README
=============================
django-dynamic-preferences
=============================.. image:: https://badge.fury.io/py/django-dynamic-preferences.png
:target: https://badge.fury.io/py/django-dynamic-preferences.. image:: https://readthedocs.org/projects/django-dynamic-preferences/badge/?version=latest
:target: http://django-dynamic-preferences.readthedocs.org/en/latest/.. image:: https://github.com/agateblue/django-dynamic-preferences/actions/workflows/tests.yml/badge.svg
:target: https://github.com/agateblue/django-dynamic-preferences/actions/workflows/tests.yml.. image:: https://opencollective.com/django-dynamic-preferences/backers/badge.svg
:alt: Backers on Open Collective
:target: #backers.. image:: https://opencollective.com/django-dynamic-preferences/sponsors/badge.svg
:alt: Sponsors on Open Collective
:target: #sponsorsDynamic-preferences is a Django app, BSD-licensed, designed to help you manage your project settings. While most of the time,
a ``settings.py`` file is sufficient, there are some situations where you need something more flexible such as:* per-user settings (or, generally speaking, per instance settings)
* settings change without server restartFor per-instance settings, you could actually store them in some kind of profile model. However, it means that every time you want to add a new setting, you need to add a new column to the profile DB table. Not very efficient.
Dynamic-preferences allow you to register settings (a.k.a. preferences) in a declarative way. Preferences values are serialized before storage in database, and automatically deserialized when you need them.
With dynamic-preferences, you can update settings on the fly, through django's admin or custom forms, without restarting your application.
The project is tested and work under Python 3.7, 3.8, 3.9, 3.10 and 3.11 and with django 3.2 and 4.2.
Features
--------* Simple to setup
* Admin integration
* Forms integration
* Bundled with global and per-user preferences
* Can be extended to other models if need (e.g. per-site preferences)
* Integrates with django caching mechanisms to improve performanceDocumentation
-------------The full documentation is at https://django-dynamic-preferences.readthedocs.org.
Changelog
---------See https://django-dynamic-preferences.readthedocs.io/en/latest/history.html
Contributing
------------See https://django-dynamic-preferences.readthedocs.org/en/latest/contributing.html
Credits
+++++++
Contributors
------------
This project exists thanks to all the people who contribute!
.. image:: https://opencollective.com/django-dynamic-preferences/contributors.svg?width=890&button=false
Backers
-------
Thank you to all our backers! `Become a backer`__.
.. image:: https://opencollective.com/django-dynamic-preferences/backers.svg?width=890
:target: https://opencollective.com/django-dynamic-preferences#backers__ Backer_
.. _Backer: https://opencollective.com/django-dynamic-preferences#backerSponsors
--------
Support us by becoming a sponsor. Your logo will show up here with a link to your website. `Become a sponsor`__.
.. image:: https://opencollective.com/django-dynamic-preferences/sponsor/0/avatar.svg
:target: https://opencollective.com/django-dynamic-preferences/sponsor/0/website__ Sponsor_
.. _Sponsor: https://opencollective.com/django-dynamic-preferences#sponsor