django-request-log is pluggable Django application to keep track user login and logout events and URLs views developed at ORCAS.
django-request-log is available on PyPI, so you can install it with pip:
$ pip install django-request-log
Or add django-request-log to the project's requirement file
Add
logto yourINSTALLED_APPS.Add
log.middleware.RequestLoggingMiddlewareto yourMIDDLEWARE_CLASSES:MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', ... 'log.middleware.RequestLoggingMiddleware', )Run:
$ python manage.py syncdb