A django integration for the castle.io service
Using the http://castle.io service this package allows for simple user tracking.
Install django-castle:
pip install django-castle
Then use it in a project:
Add the package
django_castle
tosettings.INSTALLED_APPS
Set the following setting variables:
CASTLE_API_KEY = "your key" CASTLE_API_SECRET = "your secret"
Add the
{% load castle %}
template tag on the top of your templates where you want to track usersAdd the following tags to the templates in the bottom of the head:
{% castle_load user=request.user secure=True track=True %}
- API wrapper
- Settings for API Key and Secret
- Hook for the login and logout signals
- template tags for user tracking
- cookiecutter
- cookiecutter-djangopackage