django-processinfo is an experimental Django app to collect information about the running server processes.
This only works, if /proc/$$/status exists. So only on only on unix/linux like platforms.
What is it not:
- track user actions
- collect infos which are found in e.g. apache.log
- not a profiler (read https://code.djangoproject.com/wiki/ProfilingDjango)
More info: http://www.python-forum.de/viewtopic.php?f=6&t=27168 (de)
Install
pip install django-processinfo
Usage
add to settings.py:
import os
import django_processinfo
INSTALLED_APPS = (
...
'django_processinfo',
...
)
MIDDLEWARE_CLASSES = (
'django_processinfo.middlewares.django_processinfo.ProcessInfoMiddleware',
...
)
# Put templates above admin contrib, e.g.:
TEMPLATE_DIRS = (
...
os.path.join(os.path.abspath(os.path.dirname(django_processinfo.__file__)), "templates/"),
...
)
# include app settings from ./django_processinfo/app_settings.py
from django_processinfo import app_settings as PROCESSINFO
# Change settings like this:
PROCESSINFO.ADD_INFO = True
run: syncdb to create database tables.
ProcessInfoMiddleware
The ProcessInfoMiddleware can actually be inserted anywhere. However, it should be added far above. Thus, to capture everything.
For performance enhancement, put ProcessInfoMiddleware after LocalSyncCacheMiddleware. Then, however, lacks some statistical values (in every cache hit).
Product's homepage
Requirements:
· Python
· Django
What's New in This Release: [ read full changelog ]
· Bugfix in templates: missed i18n