Skip to main content

Generic utilities for django

Project description


  1. Install with pip install djgeneric" or add "djgeneric" directory to your Python path.

  2. Add "djgeneric" to the INSTALLED_APPS tuple found in your settings file.

  3. Run syncdb to create the new tables

Username and email login

To allow login with username or email, add to settings:

AUTHENTICATION_BACKENDS += ('djgeneric.auth.EmailAuthBackend',)

Optionally you can use the form in djgeneric.auth.CustomAuthenticationForm.

Google Analitics

To use the google analitics code, add to settings:


TEMPLATE_CONTEXT_PROCESSORS += ('djgeneric.contect_processors.google_analitics',)

And then in your base template add:

{% include 'djgeneric/ga.html' %}

Login required middleware

To use the login required middleware, add to settings:


MIDDLEWARE_CLASSES += ('djgeneric.middleware.RequireLoginMiddleware',)

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

djgeneric-0.1.16.tar.gz (5.2 kB view hashes)

Uploaded Source

Supported by

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