Skip to main content

A core set of tools for django applications.

Project description

[<img src="https://travis-ci.org/InfoAgeTech/django-core.png?branch=master">](http://travis-ci.org/InfoAgeTech/django-core)
[<img src="https://coveralls.io/repos/InfoAgeTech/django-core/badge.png">](https://coveralls.io/r/InfoAgeTech/django-core)
[<img src="https://badge.fury.io/py/django-core.png">](http://badge.fury.io/py/django-core)
[<img src="https://pypip.in/license/django-core/badge.png">](https://github.com/InfoAgeTech/django-core/blob/master/LICENSE)

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

Intallation
===========
Install via [pypi](https://pypi.python.org/pypi/django-core):

pip install django-core

Documentation
=============
- [http://django-core.readthedocs.org](http://django-core.readthedocs.org)

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'
```



Settings
========
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``.

Tests
=====
From the ``tests`` directory where the manage.py file is, run:

python manage.py test

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

coverage run manage.py 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 details)

Uploaded Source

File details

Details for the file django-core-1.4.1.tar.gz.

File metadata

  • Download URL: django-core-1.4.1.tar.gz
  • Upload date:
  • Size: 37.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-core-1.4.1.tar.gz
Algorithm Hash digest
SHA256 34f507dc472f14471a75680977248a9016c9f6e0373e9202a0be4be528e8c886
MD5 84965d226a6f8cef67933ef2327325cc
BLAKE2b-256 3f43d6f322b8d100034655e4fb976c685f664597c8440803f3ea03fd8a1c229e

See more details on using hashes here.

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