Skip to main content

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.

Source Distribution

django-core-1.4.1.tar.gz (37.3 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