Install the development version:
pip install django-user-accounts
account to your
INSTALLED_APPS = ( # ... "account", # ... )
See the list of :ref:`settings` to modify the default behavior of django-user-accounts and make adjustments for your website.
account.urls to your URLs definition:
urlpatterns = patterns("", ... url(r"^account/", include("account.urls")), ... )
TEMPLATE_CONTEXT_PROCESSORS = [ ... "account.context_processors.account", ... ]
MIDDLEWARE_CLASSES = [ ... "account.middleware.LocaleMiddleware", "account.middleware.TimezoneMiddleware", ... ]
MIDDLEWARE_CLASSES if you need password expiration support:
MIDDLEWARE_CLASSES = [ ... "account.middleware.ExpiredPasswordMiddleware", ... ]
Once everything is in place make sure you run
migrate to modify the
database with the
account app models.
This is bundled with Django. It is enabled by default with all new Django
projects, but if you adding django-user-accounts to an existing project you
need to make sure
django.contrib.auth is installed.
This is bundled with Django. It is enabled by default with all new Django projects. It is used to provide links back to the site in emails or various places in templates that need an absolute URL.
We use django-appconf for app settings. It is listed in
and will be installed when pip installs.
pytz is used for handling timezones for accounts. This dependency is critical due to its extensive dataset for timezones.