Twitter Bootstrap Layout for Django Allauth
Project description
Twitter Bootstrap layout for django-allauth.
Requirements
Python 2.7 or >=3.3.
Django >=1.6
Installation
Installation via:
pip install django-allauth-bootstrap
The templates extend base.html, so the templates folder of the project should provide one, together with the Twitter Bootstrap and a JQuery library.
Then add 'bootstrapform' and 'allauth_bootstrap' to INSTALLED_APPS, before 'allauth'. The order is important because following apps are overwritten:
INSTALLED_APPS = ( # ... 'django.contrib.sites', # For ``allauth``. 'bootstrapform', 'allauth_bootstrap', 'allauth', 'allauth.account', # ... )
For allauth itself, remember to add the following settings:
from django.conf import global_settings SITE_ID = 1 TEMPLATE_CONTEXT_PROCESSORS = global_settings.TEMPLATE_CONTEXT_PROCESSORS + ( "allauth.account.context_processors.account", "allauth.socialaccount.context_processors.socialaccount", ) LOGIN_REDIRECT_URL = '/'
Example Project
The example project can be run to have a quick look and to check out a running setup. Download the source files and run:
virtualenv -p /usr/bin/python3 ~/myenv source ~/myenv/bin/activate pip install -r requirements.txt ./manage.py migrate ./manage.py runserver
Customization
To use custom templates, there are two ways to accomplish that:
Overwrite a template at templates/account to replace them completely.
Inherit a template at templates/account to overwrite only one or more of its blocks. Defining a custom URL pointing at the custom template is necessary then.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for django-allauth-bootstrap-0.1a1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7cc274ee691b1292b9f48ddae1e30d048983d2bf64d53fb50a913a6dcedbe43 |
|
MD5 | 356b037a03b7d0921957e13345208ae6 |
|
BLAKE2b-256 | deef4a9bc2caf3fe9809ae133597ab28d205e323c931b0acdbbb288305776523 |