django-dbpreferences 0.6.0

With django-dbpreferences you can store app/user settings into the database.

description

With django-dbpreferences you can store some app/user preferences into the database.

<object data="https://travis-ci.org/jedie/django-dbpreferences.svg" type="image/svg+xml">Build Status on travis-ci.org</object> travis-ci.org/jedie/django-dbpreferences
<object data="https://coveralls.io/repos/jedie/django-dbpreferences/badge.svg" type="image/svg+xml">Coverage Status on coveralls.io</object> coveralls.io/r/jedie/django-dbpreferences
<object data="https://landscape.io/github/jedie/django-dbpreferences/master/landscape.svg" type="image/svg+xml">Status on landscape.io</object> landscape.io/github/jedie/django-dbpreferences/master

A 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.

With UserSettings you can store some settings per user.

More Information and examples can be found here:

unittests

There exist different ways to run unittests, e.g.:

.../django-dbpreferences $ ./setup.py test
.../django-dbpreferences $ ./manage.py test
.../django-dbpreferences $ ./runtests.sh

Run 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.TestDBPref

Django compatibility

django-tools django version python
v0.6.0 1.6 - 1.8 2.7, 3,4
v0.5.0 <=1.6 2 only
v0.4.5 <=1.4 2 only

(version combination will be tested via travis-ci)

history

  • v0.6.0 - 11.08.2015 - compare v0.5.0...v0.6.0

    • Bugfixes and compatibility with Python 2 and 3, Django 1.6-1.8
    • data_eval rewrite using ast module
    • dbpreferences.fields.DictField was renamed to DictModelField
  • v0.5.0 - 12.02.2015 - compare v0.4.5...v0.5.0

    • Changes for django 1.6 support
  • v0.4.5 - 03.08.2012 - compare v0.4.4...v0.4.5

  • v0.4.4 - 03.08.2012 - compare v0.4.3...v0.4.4

    • Add south support (if installed)
    • tests can be run with ./setup.py test
    • add german translations
  • v0.4.3

  • v0.4.2

    • Bugfix: Add templates to pypi package
  • v0.4.1

    • Bugfix with BooleanField
  • v0.4.0

    • NEW: Use initial data, if not exist in saved preferences. So it’s easier to add new preferences values.
  • v0.3.8

    • Bugfix in error message for not existing keys
  • v0.3.7

    • Change version scheme and add last git commit date to version string
  • v0.3.6

    • Display current value on ValidationError
  • v0.3.5

    • Updates for django v1.2 API changes
  • v0.3.4

    • Bugfix if help_text contains non ascii characters and html code
  • v0.3.3

    • validate preferences with model validation
    • clean preferences in get_preferences()
  • v0.3.2

    • some bugfixes
  • v0.3.1

    • Bugfix if DictField can be null / DictFormField(required=False)
  • v0.3.0

    • separate field stuff from models.py into fields.py, so its usable in other projects, too.
    • Use own dict class for serialize/deserialize
    • Update unittest for new django admin url prefix
  • v0.2.0

  • v0.1.0

pip upgrade

To 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-dbpreferences

The 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-dbpreferences

If 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-dbpreferences

donation

If you like it, send some Bitcoins to 1HLNVtZFwdHLavRKdUebTGHVn8A7e6Dgne ;)

links

homepage http://github.com/jedie/django-dbpreferences
PyPi http://pypi.python.org/pypi/django-dbpreferences/

contact

Come into the conversation, besides the github communication features:

Forum http://www.pylucid.org/en/forum/10/
IRC #pylucid on freenode.net (Yes, the PyLucid channel...)
webchat http://webchat.freenode.net/?channels=pylucid

Author

Jens Diemer

Pip

django-dbpreferences==0.6.0

Classifiers

  • Development Status :: 5 - Production/Stable
  • Environment :: Web Environment
  • Framework :: Django
  • Intended Audience :: Developers
  • Operating System :: OS Independent
  • Programming Language :: Python
  • Topic :: Internet :: WWW/HTTP :: Site Management
  • Topic :: Documentation
  • License :: OSI Approved :: GNU General Public License (GPL)
  • Topic :: Database :: Front-Ends
  • Topic :: Internet :: WWW/HTTP :: Dynamic Content
  • Topic :: Internet :: WWW/HTTP :: WSGI :: Application
File Type Python Version Uploaded On Downloads
django_dbpreferences-0.6.0-py2.7.egg Egg 2.7 Aug. 11, 2015 184
django_dbpreferences-0.6.0-py2-none-any.whl Wheel py2 Aug. 11, 2015 179
django-dbpreferences-0.6.0.tar.gz Source Aug. 11, 2015 429
Version Release Date
0.6.0 Aug. 11, 2015
0.5.0.0212 Feb. 12, 2015
0.4.5.0803 Aug. 3, 2012
0.4.4.1012 Oct. 12, 2011
0.4.3.0829 Aug. 29, 2011
0.4.2.0714 July 14, 2011
0.4.1.0516 May 16, 2011
0.4.0.0414 April 14, 2011
0.3.8.0414 April 14, 2011
0.3.7.0414 April 14, 2011
0.3.1beta Aug. 18, 2009
0.3.0beta Aug. 18, 2009
0.2.0beta July 8, 2009
0.1.0beta April 21, 2009
0.3.6.git-dd2c96a April 14, 2011
0.3.5.git-791ba6f April 11, 2011
0.3.4.git-c57b020 Sept. 28, 2010
0.3.3.git-e7443f1 June 18, 2010
0.3.2.svn34 March 24, 2010
Date Package Version Action
Aug. 24, 2015, 11:01 p.m. django-dbpreferences 0.3.5.git-791ba6f Release Created
Aug. 24, 2015, 11:01 p.m. django-dbpreferences 0.3.7.0414 Release Created
Aug. 24, 2015, 11:01 p.m. django-dbpreferences 0.3.2.svn34 Release Created
Aug. 24, 2015, 11:01 p.m. django-dbpreferences 0.3.4.git-c57b020 Release Created
Aug. 24, 2015, 11:01 p.m. django-dbpreferences 0.4.4.1012 Release Created
Aug. 24, 2015, 11:01 p.m. django-dbpreferences 0.2.0beta Release Created
Aug. 24, 2015, 11:01 p.m. django-dbpreferences 0.3.6.git-dd2c96a Release Created
Aug. 24, 2015, 11:01 p.m. django-dbpreferences 0.4.0.0414 Release Created
Aug. 24, 2015, 11:01 p.m. django-dbpreferences 0.3.8.0414 Release Created
Aug. 24, 2015, 11:01 p.m. django-dbpreferences 0.5.0.0212 Release Created
Aug. 24, 2015, 11:01 p.m. django-dbpreferences 0.6.0 Release Created
Aug. 24, 2015, 11:01 p.m. django-dbpreferences 0.3.0beta Release Created
Aug. 24, 2015, 11:01 p.m. django-dbpreferences 0.3.3.git-e7443f1 Release Created
Aug. 24, 2015, 11:01 p.m. django-dbpreferences 0.4.2.0714 Release Created
Aug. 24, 2015, 11:01 p.m. django-dbpreferences 0.1.0beta Release Created
Aug. 24, 2015, 11:01 p.m. django-dbpreferences 0.4.5.0803 Release Created
Aug. 24, 2015, 11:01 p.m. django-dbpreferences 0.4.1.0516 Release Created
Aug. 24, 2015, 11:01 p.m. django-dbpreferences 0.4.3.0829 Release Created
Aug. 24, 2015, 11:01 p.m. django-dbpreferences 0.3.1beta Release Created
Aug. 24, 2015, 11:01 p.m. django-dbpreferences Package Created