Package: django-dbpreferences
descriptionWith django-dbpreferences you can store some app/user preferences into the database.travis-ci.org/jedie/django-dbpreferencescoveralls.io/r/jedie/django-dbpreferenceslandscape.io/github/jedie/django-dbpreferences/masterA django app defines a form with initial values. The form cleaned data dict would
be stored serialized into the database. The app can easy get the current preference
dict and the user can easy edit the values in the django admin panel.WithUserSettingsyou can
store some settings per user.More Information and examples can be found here:https://code.google.com/p/django-dbpreferences/w/listunittestsThere exist different ways to run unittests, e.g.:.../django-dbpreferences $ ./setup.py test
.../django-dbpreferences $ ./manage.py test
.../django-dbpreferences $ ./runtests.shRun specific tests, e.g.:.../django-dbpreferences $ ./setup.py test tests.test_dbpreferences.TestDBPref
.../django-dbpreferences $ ./manage.py test tests.test_dbpreferences.TestDBPref
.../django-dbpreferences $ ./runtests.sh tests.test_dbpreferences.TestDBPrefDjango compatibilitydjango-toolsdjango versionpythonv0.6.01.6 - 1.82.7, 3,4v0.5.0<=1.62 onlyv0.4.5<=1.42 only(version combination will be tested via travis-ci)historyv0.6.0 - 11.08.2015 -compare v0.5.0…v0.6.0Bugfixes and compatibility with Python 2 and 3, Django 1.6-1.8data_evalrewrite using ast moduledbpreferences.fields.DictFieldwas renamed toDictModelFieldv0.5.0 - 12.02.2015 -compare v0.4.5…v0.5.0Changes for django 1.6 supportv0.4.5 - 03.08.2012 -compare v0.4.4…v0.4.5Add cache for preferences access (usedLocalSyncCache from django-toolsif installed)v0.4.4 - 03.08.2012 -compare v0.4.3…v0.4.4Add south support (if installed)tests can be run with./setup.py testadd german translationsv0.4.3Bugfix:For ‘UserSettings’ object has no attribute ‘get_settings’v0.4.2Bugfix: Add templates to pypi packagev0.4.1Bugfix with BooleanFieldv0.4.0NEW: Use initial data, if not exist in saved preferences. So it’s easier to add new preferences values.v0.3.8Bugfix in error message for not existing keysv0.3.7Change version scheme and add last git commit date to version stringv0.3.6Display current value on ValidationErrorv0.3.5Updates for django v1.2 API changesv0.3.4Bugfix if help_text contains non ascii characters and html codev0.3.3validate preferences with model validationclean preferences in get_preferences()v0.3.2some bugfixesv0.3.1Bugfix if DictField can be null /DictFormField(required=False)v0.3.0separate field stuff from models.py into fields.py, so its usable in other projects, too.Use own dict class for serialize/deserializeUpdate unittest for new django admin url prefixv0.2.0AddUserSettings, see:http://www.jensdiemer.de/_command/118/blog/detail/64/(de)v0.1.0first version cut out from PyLucid CMS –http://www.pylucid.orgpip upgradeTo do a pip upgrade in a virtual environment, run this:~$ cd /YourVirtualEnv/bin
~/YourVirtualEnv/bin$ source activate
(YourVirtualEnv)~/YourVirtualEnv/bin$ pip install --upgrade --verbose --editable=git+git://github.com/jedie/django-dbpreferences.git#egg=django-dbpreferencesThe example used git readonly clone url. If you use subversion do this:(YourVirtualEnv)~/YourVirtualEnv/bin$ pip install --upgrade --verbose --editable=http://svn.github.com/jedie/django-dbpreferences.git#egg=django-dbpreferencesIf you have git write access, use this:(YourVirtualEnv)~/YourVirtualEnv/bin$ pip install --upgrade --verbose --editable=git+git@github.com:jedie/django-dbpreferences.git#egg=django-dbpreferencesdonationIf you like it, send someBitcoinsto1HLNVtZFwdHLavRKdUebTGHVn8A7e6Dgne;)linkshomepagehttp://github.com/jedie/django-dbpreferencesPyPihttp://pypi.python.org/pypi/django-dbpreferences/contactCome into the conversation, besides the github communication features:Forumhttp://www.pylucid.org/en/forum/10/IRC#pylucid on freenode.net (Yes, the PyLucid channel…)webchathttp://webchat.freenode.net/?channels=pylucid