Skip to main content

Twitter Bootstrap Layout for Django Allauth

Project description

Twitter Bootstrap layout for django-allauth.


  • Python 2.7 or >=3.3.

  • Django >=1.9


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:

    # ...
    'django.contrib.sites',  # For ``allauth``.

    # ...

For allauth itself, remember to add the following settings:

        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [],
        'APP_DIRS': True,
        'OPTIONS': {
            'context_processors': [
                # Already defined Django-related contexts here

                # `allauth` needs this from django



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
./ migrate
./ runserver


To use custom templates, there are two ways to accomplish that:

  1. Overwrite a template at templates/account to replace them completely.

  2. 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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-allauth-bootstrap-0.2.tar.gz (7.4 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page