Details of Django server working
The details of the architecture of how the server is designed.
- Not started
- Manish Sinha (मनीष सिन्हा)
- Needs approval
- Series goal:
- Milestone target:
- Started by
- Completed by
The server logs two kinds of events
* Generic Events
* Specific events
The generic events are the events which we do not categorize. They look nearly the same as that we have in Zeitgeist.
The generic events have the fields
fields = ('uid', 'timestamp', 'origin', 'interpretation', 'manifestation', 'actor',
Specific events are built on top of generic events. They are generic events with additional metadata.
Example of specific events are Music, Video, Application etc.
The Music event looks like
fields = (
'title', 'artist', 'album', 'year', 'comment', 'track', 'genre',
('event', ('uid', 'timestamp', 'origin', 'interpretation', 'manifestation', 'actor',
As it can be seen Music event is Generic event+ some additional metadata which makes sense only for that specific event type
Affinity uses Django with django-piston for RESTful API
It has CSRF check disabled
The current models for generic Events are
The current model for Music event type are
We need to have similar model and Specific event logging for the following type
* Web sites
The current way to use the API is via curl. Check the README file from.
Get the code by the command
$ bzr branch lp:zeitgeist-affinity affinity
Please make sure you have the folder name as affinity and not zeitgeist-affinity