Skip to main content

description

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

Build Status on travis-ci.org

travis-ci.org/jedie/django-dbpreferences

Coverage Status on coveralls.io

coveralls.io/r/jedie/django-dbpreferences

Status on landscape.io

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 ;)

Metadata

Release files for django-dbpreferences 0.6.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-dbpreferences 0.6.0
File Size Uploaded
django-dbpreferences-0.6.0.tar.gz 25.5 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for django-dbpreferences 0.6.0
File Interpreter ABI Platform
django_dbpreferences-0.6.0-py2.7.egg Legacy Egg format - - Details
django_dbpreferences-0.6.0-py2-none-any.whl Python 2 none any Details

Total release size: 90.5 kB

Release files / django-dbpreferences-0.6.0.tar.gz

Download URL django-dbpreferences-0.6.0.tar.gz
Size 25.5 kB
Tags Source
SHA-256 checksum
How to use checksums
719c290c6eea1274042d14e85e65c5b14879adf60b4cfe35e7ea43f187bcdfee
BLAKE2b-256 checksum
How to use checksums
3c63fd41a47f2de956f0ad4ff61455e2d89491ef701ba80b3d48bf49fe48df00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / django_dbpreferences-0.6.0-py2.7.egg

Download URL django_dbpreferences-0.6.0-py2.7.egg
Size 30.4 kB
Tags Egg
SHA-256 checksum
How to use checksums
e375f8963f392b531d988766a13343d78b562f1859b979a7696dab58ecf3a2ee
BLAKE2b-256 checksum
How to use checksums
7164238f56531368a5d7b8f1715677f40166dae8714bcafe9c119c28a2bbcbf1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / django_dbpreferences-0.6.0-py2-none-any.whl

Download URL django_dbpreferences-0.6.0-py2-none-any.whl
Size 34.6 kB
Tags Python 2
SHA-256 checksum
How to use checksums
a43f8bf5220760569a9ebcbd965ed66fe10cc00004ffd50f07fbac5d996db0dd
BLAKE2b-256 checksum
How to use checksums
9f6fb3cd0d2fc8aa30ea1fe42583a2e0d1a940d3285cd19d11008f7b32703f80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
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