def track_event(request, event):
    """
    Simple view that receives and stores an event in the backend (celery queue
    or dummy).
    """
    params = request.GET.get('params')
    if params:
        try:
            params = anyjson.deserialize(params)
        except __HOLE__, e:
            return HttpResponseBadRequest()
    else:
        params = {}

    backend.track(event, params)
    return HttpResponse('OK')
dataset/ETHPy150Open ella/django-event-tracker/eventtracker/views.py/track_event