Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

A core set of tools for django applications.

Project description

[<img src="">](
[<img src="">](
[<img src="">](
[<img src="">](

django-core is a python tools module written for django.

Install via [pypi](

pip install django-core

- [](

View Mixins
Below are the view mixins within django-core.

### AuthorizationTokenRequiredViewMixin
The view mixin that requires an authorization token.

**Example Usage**

from django.views.generic.base import TemplateView
from django_core.auth.views import AuthorizationTokenRequiredViewMixin

class MyView(AuthorizationTokenRequiredViewMixin, TemplateView):
template_name = 'path/to/template.html'

1. ``CORE_BASE_HTML_EMAIL_TEMPLATE``: This is the default path to the html template to use for emails. The template must call the ``{{ email_content }}`` variable as this is the placeholder for the actual email content. This defaults to ``django_core/mail/base_email.html``.

From the ``tests`` directory where the file is, run:

python test

Run tests and output test coverage (requires ``coverage`` lib: ``pip install coverage``):

coverage run test && coverage report --rcfile=../.coveragerc

Project details

Download files

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

Files for django-core, version 1.4.1
Filename, size File type Python version Upload date Hashes
Filename, size django-core-1.4.1.tar.gz (37.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page