All Projects → idlesign → django-siteprefs

idlesign / django-siteprefs

Licence: BSD-3-Clause license
Reusable app for Django introducing site preferences system

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to django-siteprefs

Androidpreferenceactivity
Provides an alternative implementation of Android's PreferenceActivity
Stars: ✭ 63 (+320%)
Mutual labels:  preferences
Macos Fn Toggle
A macOS app to quickly toggle the behavior of the fn key.
Stars: ✭ 178 (+1086.67%)
Mutual labels:  preferences
iOSUtilitiesSource
IOS Utilities Library for Swift
Stars: ✭ 46 (+206.67%)
Mutual labels:  preferences
Night Shift On Unsupported Macs
Enable Night Shift on older Unsupported Macs
Stars: ✭ 86 (+473.33%)
Mutual labels:  preferences
Api Generator
Api Generator是一款可以自动解析Controller类抽取REST接口信息并自动上传YApi的IDEA插件。YApi好伴侣,从此维护文档再也不是事儿了!
Stars: ✭ 139 (+826.67%)
Mutual labels:  preferences
Mac
macOS Mojave v. 10.14 setup for developers.
Stars: ✭ 209 (+1293.33%)
Mutual labels:  preferences
Mac config
Scripted installation and configuration of Mac OS X apps and preferences
Stars: ✭ 55 (+266.67%)
Mutual labels:  preferences
MaterialPreferences
🍉 An Android library that lets you implement MaterialPreferences on Setting UI.
Stars: ✭ 21 (+40%)
Mutual labels:  preferences
Preferenceholder
SharedPreference usage made fun in Kotlin
Stars: ✭ 148 (+886.67%)
Mutual labels:  preferences
setup
My setup... dotfiles, aliases, functions, preferences, apps. Everything.
Stars: ✭ 110 (+633.33%)
Mutual labels:  preferences
Mac Bootstrap
💻 Provision a new Mac for web development with dotfiles + Fish/Zsh, Neovim, and Tmux
Stars: ✭ 96 (+540%)
Mutual labels:  preferences
Bulldog
Android library to simplify reading and writing to SharedPreferences, never write code like this anymore prefs.edit().putString("someKey","someString").apply()
Stars: ✭ 133 (+786.67%)
Mutual labels:  preferences
Settings View
🔧 Edit Atom settings
Stars: ✭ 226 (+1406.67%)
Mutual labels:  preferences
Multiplatform Preferences
Kotlin Multi Platform Preferences, for android an ios : SharedPreferences & NSUserDefault
Stars: ✭ 76 (+406.67%)
Mutual labels:  preferences
tauri-plugin-store
Simple and persistent, unencrypted key-value store for your Tauri app.
Stars: ✭ 123 (+720%)
Mutual labels:  preferences
Xui
A drop-in replacement for iOS Settings Bundle "Settings.bundle".
Stars: ✭ 60 (+300%)
Mutual labels:  preferences
Typedpreferences
Preference wrappers for primitive types for Android
Stars: ✭ 191 (+1173.33%)
Mutual labels:  preferences
vscode-formatting-toggle
A VS Code extension that allows you to toggle the formatter (Prettier, Beautify, …) ON and OFF with a simple click.
Stars: ✭ 52 (+246.67%)
Mutual labels:  preferences
PowerPreference
💾 A Powerful library to control and simplify the usage of shared preference in Android.
Stars: ✭ 95 (+533.33%)
Mutual labels:  preferences
Prefser
Wrapper for Android SharedPreferences with object serialization and RxJava Observables
Stars: ✭ 228 (+1420%)
Mutual labels:  preferences

django-siteprefs

http://github.com/idlesign/django-siteprefs

What's that

django-siteprefs allows Django applications settings to come alive

Let's suppose you have your pretty settings.py file with you application:

from django.conf import settings

MY_OPTION_1 = getattr(settings, 'MY_APP_MY_OPTION_1', True)
MY_OPTION_2 = getattr(settings, 'MY_APP_MY_OPTION_2', 'Some value')
MY_OPTION_42 = getattr(settings, 'MY_APP_MY_OPTION_42', 42)

Now you want these options to be exposed to Django Admin interface. Just add the following:

# To be sure our app is still functional without django-siteprefs.
if 'siteprefs' in settings.INSTALLED_APPS:

    from siteprefs.toolbox import preferences

    with preferences() as prefs:
        # And that's how we expose our options to Admin.
        prefs(MY_OPTION_1, MY_OPTION_2, MY_OPTION_42)

After that you can view your settings in Django Admin.

If you want those settings to be editable through the Admin - siteprefs allows that too, and even more.

Read the docs ;)

Documentation

http://django-siteprefs.readthedocs.org/

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].