Skip to content

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

License

Notifications You must be signed in to change notification settings

iwalucas/django-spades

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  2. Add "Spades" to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
        'Spades',
    ]
  3. 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))

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published