Skip to content

mikluko/django-dbpreferences

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

description

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

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.

history

  • 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

fast repo update

To made a fast repository update, you can run this simple shell script:

~$ cd /path/to/django-dbpreferences
/path/to/django-dbpreferences$ ./update.sh

the update script runs “git pull origin master” or “svn update”.

links

About

A reuseable django app for storing preferences into database.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.2%
  • Shell 0.8%