Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Twitter Bootstrap templates for django-contact-form.

Requirements

  • Python 2.7 or >=3.3.

  • Django >=1.6

Installation

Installation via:

pip install django-contact-form-bootstrap==0.1a1

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 'contact_form_bootstrap' to INSTALLED_APPS, before 'contact_form'. The order is important because following apps are overwritten:

INSTALLED_APPS = (
    # ...
    'django.contrib.sites',  # For ``contact_form``.

    'bootstrapform',
    'contact_form_bootstrap',
    'contact_form',
    # ...
)

For contact_form itself, remember to add the following settings:

SITE_ID = 1

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/contact_form to replace them completely.

  2. Inherit a template from templates/contact_form 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-contact-form-bootstrap 0.1a1

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-contact-form-bootstrap 0.1a1
File Size Uploaded Provenance
django-contact-form-bootstrap-0.1a1.tar.gz 4.9 kB Without provenance Details

Release files / django-contact-form-bootstrap-0.1a1.tar.gz

Download URL django-contact-form-bootstrap-0.1a1.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
10543ce8e60f4f1129c929598ab2a34ab8d083962ccf41336c747eef86fa80ed
BLAKE2b-256 checksum
How to use checksums
b09642dab50018442996af6d9b2b548ff745f87b743e642ef794d43e79efdf38
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-contact-form-bootstrap 0.1a1

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.

Release history Release notifications | RSS feed

This release
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