Bootstrap templates for django.contrib.auth
Django comes with a reasonable default authorization module comprising of several useful views such as login and logout, password reset flow and password change flow. Neither the templates for these views nor the urls are part of the standard django distribution. This projects implemnts the missing functionality so you don't have to.
Install django-auth-bootstrap-templates:
pip install django_authstrap
Then use it in a project:
Put this in your settings.py:
INSTALLED_APPS += 'django_authstrap' LOGIN_URL = 'auth/login' LOGOUT_URL = 'auth/logout'
Set-up the project urls.py to include auth urls:
url(r'^auth/', include('django_authstrap.urls'))
Run the dev server and point your browser to a page that required logging in.
- All tempaltes are based on Bootstrap 2
- Forms are rendered using the form-horizontal layout