|
|
Logs Django exceptions to your database handler.
Installation Instructions
Download and install the package using distutils:
svn checkout http://django-db-log.googlecode.com/svn/trunk/ django-db-log cd django-db-log sudo python setup.py install
Update your settings.py and add the middleware and installed apps settings:
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'djangodblog.DBLogMiddleware',
)
INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'djangodblog',
)Finally, run python manage.py syncdb to create the database tables.
Usage
You will find two new admin panels in the automatically built Django administration:
- Errors
- Error batchs
It will store every single error inside of "Errors", and it will store a collective, or summary, of errors inside of Error batchs (this is more useful for most cases).
