Skip to main content

Bootstrap templates for django.contrib.auth

Project description

https://badge.fury.io/py/django_authstrap.png https://travis-ci.org/alixedi/django_authstrap.png?branch=master https://pypip.in/d/django_authstrap/badge.png

Bootstrap templates for django.contrib.auth

Introduction

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.

Installation

Install django-auth-bootstrap-templates:

pip install django_authstrap

Usage

Then use it in a project:

  1. Put this in your settings.py:

    INSTALLED_APPS += 'django_authstrap'
    LOGIN_URL = 'auth/login'
    LOGOUT_URL = 'auth/logout'
  2. 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.

Features

  • All tempaltes are based on Bootstrap 2

  • Forms are rendered using the form-horizontal layout

History

0.1.0 (2013-11-25)

  • First release on PyPI.

0.2.0 (2013-11-25)

  • Noe includes a working demo project.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page