Skip to main content

A django integration for the castle.io service

Project description

===============
django-castle
===============

A django integration for the castle.io service

Documentation
-------------

Using the http://castle.io service this package allows for simple user tracking.

Quickstart
----------

Install django-castle::

pip install django-castle

Then use it in a project::

1. Add the package ``django_castle`` to ``settings.INSTALLED_APPS``

2. Set the following setting variables::

CASTLE_API_KEY = "your key"
CASTLE_API_SECRET = "your secret"

3. Add the ``{% load castle %}`` template tag on the top of your templates where you want to track users

4. Add the following tags to the templates in the bottom of the head::

{% castle_load user=request.user secure=True track=True %}

Features
--------

* API wrapper
* Settings for API Key and Secret
* Hook for the login and logout signals
* template tags for user tracking

Cookiecutter Tools Used in Making This Package
----------------------------------------------

* cookiecutter
* cookiecutter-djangopackage




History
-------

0.0.1 (2015-08-28)
++++++++++++++++++

* First release on GitHub.

0.0.2 (2015-08-29)
++++++++++++++++++

* First working release on GitHub

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-castle-0.1.1.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_castle-0.1.1-py2.py3-none-any.whl (6.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file django-castle-0.1.1.tar.gz.

File metadata

  • Download URL: django-castle-0.1.1.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-castle-0.1.1.tar.gz
Algorithm Hash digest
SHA256 05c351d8f8efed296eac2755ea1cb1c97cf9a5e88446e0bf4b2423f008ca4ad8
MD5 27550a45f1aaff9d0cd2b2428eccf4ac
BLAKE2b-256 1857261701758d44a4aa6980a960bf5f999d4992bddd9400bb4ed1ba016eb7e6

See more details on using hashes here.

File details

Details for the file django_castle-0.1.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_castle-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e40caa24f1798770e120882a6f262d87061f5247f1ecca2ae4539fa0096870be
MD5 0c4b0fe1f229f98fd73154e31dca1c35
BLAKE2b-256 ae5ddfd1c1ff18e04b85b855f837401da8a4dc6c4152ed37332d0d2a2e6517a1

See more details on using hashes here.

Supported by

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