Skip to main content
https://badge.fury.io/py/django-dynamic-preferences.png https://readthedocs.org/projects/django-dynamic-preferences/badge/?version=latest https://github.com/agateblue/django-dynamic-preferences/actions/workflows/tests.yml/badge.svg Backers on Open Collective Sponsors on Open Collective

Dynamic-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 restart

For 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 performance

Documentation

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!

https://opencollective.com/django-dynamic-preferences/contributors.svg?width=890&button=false

Backers


Thank you to all our backers! Become a backer.

https://opencollective.com/django-dynamic-preferences/backers.svg?width=890

Sponsors


Support us by becoming a sponsor. Your logo will show up here with a link to your website. Become a sponsor.

https://opencollective.com/django-dynamic-preferences/sponsor/0/avatar.svg

Release files for django-dynamic-preferences 1.17.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-dynamic-preferences 1.17.0
File Size Uploaded
django_dynamic_preferences-1.17.0.tar.gz 51.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-dynamic-preferences 1.17.0
File Interpreter ABI Platform
django_dynamic_preferences-1.17.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 102.0 kB

Release files / django_dynamic_preferences-1.17.0.tar.gz

Download URL django_dynamic_preferences-1.17.0.tar.gz
Size 51.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c13520107d13c696997a237f8e7731cef93642837d523b95863a40115f7f2d8f
BLAKE2b-256 checksum
How to use checksums
6fbfb1b1554d71c10b4380aa4e060ec03bd1952a76d951b0faca6cc1581b99f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.3

Release files / django_dynamic_preferences-1.17.0-py2.py3-none-any.whl

Download URL django_dynamic_preferences-1.17.0-py2.py3-none-any.whl
Size 50.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
1f7111e01235b6273a4038783d92a8bf2826cb4eee7e324779b2dc76e3e00b06
BLAKE2b-256 checksum
How to use checksums
c57e386a9cb4fdc83bcc33a381842a8e359621c780f24ba820c3080406edaafe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.3

Release history Release notifications | RSS feed

This release

1.17.0 This release

2 release files

1.16.0

2 release files

1.14.0

1 release file

1.13.0

2 release files

1.12.0

2 release files

1.10.1

2 release files

1.10

2 release files

1.9

2 release files

1.8.1

2 release files

1.8

2 release files

1.7.1

2 release files

1.7

2 release files

1.6

2 release files

1.5.1

2 release files

1.5

2 release files

1.4.2

1 release file

1.4.1

1 release file

1.4

1 release file

1.3.3

1 release file

1.3.2

1 release file

1.3.1

1 release file

1.3

1 release file

1.2

1 release file

1.1.1

1 release file

1.1

1 release file

1.0

1 release file

0.8.4

1 release file

0.8.3

1 release file

0.8.2

1 release file

0.8.1

1 release file

0.8

1 release file

0.7.1

1 release file

0.7

1 release file

0.6.6

1 release file

0.6.5

1 release file

0.6.4

1 release file

0.6.3

1 release file

0.6.2

1 release file

0.6.1

1 release file

0.6

1 release file

0.5.4

1 release file

0.5.3

1 release file

0.5.2

1 release file

0.5.1

1 release file

0.5

1 release file

0.4.3

1 release file

0.4.2

1 release file

0.3.1

1 release file

0.3

1 release file

0.2.4

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page