Skip to main content

Django app to track generic events and keep records of unstructured data.

Project description

Django Spades can be used to keep track of things(events) that happen on your django and you want to track.

There is basically two usages:

1 - API

2 - Saving a record model

Quick start

  1. Install:

    pip install django-spades

  1. Add “Spades” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
        'Spades',
    ]
  2. Run python manage.py migrate to create the models.

Usage

You should see it under admin with a nice rendering of the json field

Using the Model:

from Spades.models import Event
tmp={}
tmp['User']=request.user.id
tmp['AnyTag']="Checkpoint 1"
tmp['Tag2'] = some_variable

event = Event(name="USER_CLICKED_A_BUTTON",info=json.dumps(tmp))

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-spades-0.1.9.tar.gz (8.2 kB view hashes)

Uploaded Source

Built Distribution

django_spades-0.1.9-py3-none-any.whl (10.1 kB view hashes)

Uploaded Python 3

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