Skip to main content

Twitter Bootstrap layout for django-allauth.

Requirements

  • Python 2.7 or >=3.3.

  • Django >=1.9

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:

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

                # `allauth` needs this from django
                'django.template.context_processors.request',
            ],
        },
    },
]

SITE_ID = 1

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:

  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.

Metadata

Release files for django-allauth-bootstrap 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-allauth-bootstrap 0.2
File Size Uploaded Provenance
django-allauth-bootstrap-0.2.tar.gz 7.4 kB Without provenance Details

Release files / django-allauth-bootstrap-0.2.tar.gz

Download URL django-allauth-bootstrap-0.2.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
930b494048d0584186be396aa5aa722fe97331a1934a7ac2a839e66e89ab6e1d
BLAKE2b-256 checksum
How to use checksums
988a9fe3333709e505d1250a80fda71aa036e332453c64a015e5c30b58a6aa4f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-allauth-bootstrap 0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page