django-userpreferences 0.1
Django application that allows you to easily store preferences for your users to choose from. Sending emails but want to let the user choose the frequency ? Do it by adding a preferences.py file in your email app.
=====================================
django-userpreferences (django-userpreferences)
=====================================
This Django_ app has for purpose to integrate easily for other apps to use.
It aims to be easily added into existing projects.
Installation
============
Depedencies
~~~~~~~~~~~
django-userpreferences requires django-picklefield.
When upgrading you need south.
Installing django-userpreferences
~~~~~~~~~~~~~~~~~~~~~~~~~~
Install into your python path using pip or easy_install::
pip install django-userpreferences
easy_install django-userpreferences
Add *'preferences'* to your INSTALLED_APPS in settings.py::
INSTALLED_APPS = (
...
'preferences',
)
Add *'(r'^preferences/', include('preferences.urls')'* to your urls::
urlpatterns = patterns( '',
....
(r'^preferences/', include('preferences.urls'),
)
Don't forget to run ::
./manage.py syncdb
to create the table that is going to receive the preferences.
And if you are using south (you need south if you are upgrading)::
./manage.py migrate
Changing the default separator
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
django-userpreferences uses a separator between the app name and the
preference name in forms. By default the separator is '/'. To override this
in the weird case you might be needing it in some variable name, you need
to change it in you settings.py file::
PREFERENCES_SEPARATOR = '/'
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| django-userpreferences-0.1.tar.gz (md5) | Source | 2011-04-21 | 30KB | 343 | |
- Author: Nicolas Patry
- Home Page: http://github.com/Narsil/django-userpreferences
- Download URL: http://github.com/Narsil/django-userpreferences/downloads/
- Keywords: django preferences user settings profile
- Requires django_picklefield (>=0.1.9)
-
Categories
- Development Status :: 4 - Beta
- Environment :: Web Environment
- Framework :: Django
- Intended Audience :: Developers
- License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)
- Operating System :: OS Independent
- Programming Language :: Python
- Topic :: Internet
- Topic :: Software Development :: Libraries :: Python Modules
- Package Index Owner: narsil
- DOAP record: django-userpreferences-0.1.xml
