axiacore

Blog

Extended log for Django

Vera Mazhuga

Vera Mazhuga

Published

1 min read.

Extended log, that tracks changes in Django models.


Sometimes there is a need to track all the changes that users make with model objects in Django. We wrote our version of django.contrib.admin.models.LogEntry in order to be able to register actions of our user upon the objects in the database.


Github repository: 
https://github.com/AxiaCore/django-extlog


Installation



Installing from pypi (using pip):
pip install django-extlog

Installing from github:
pip install -e git://github.com/AxiaCore/django-extlog.git#egg=django-extlog

Requirements


pip install django-extensions

Quick Setup



1. Add
django_extlo to your INSTALLED_APPS setting like this::

<pre data-gclp-id="0" data-initialized="true" lang="python">INSTALLED_APPS = (<br/> ...<br/> 'django_extlog',<br/>)<br/></pre>


2. Add AuditLoggingMiddleware to your MIDDLEWARE_CLASSES setting::
MIDDLEWARE_CLASSES = (
    ...
    'django_extlog.middleware.AuditLoggingMiddleware',
)

Screenshots




Get a monthly update from our CEO:

Learn about how we think:

Check if an item is in array for Handlebars

How to check if an array contains a certain item in Handlebars template.

Vera Mazhuga

Vera Mazhuga

Published Jul 25, 2014

Switching Between Compass Versions

Compass is a great framework that helps us writing clean styles using Sass, creating sprites, using mixins and among other f...

Pablo Vallejo

Pablo Vallejo

Published Jul 10, 2014

Dependency Management In Django Using Bower

In today's web applications it's very common to use libraries and have several dependencies that are used in the front end of...

Pablo Vallejo

Pablo Vallejo

Published Jun 18, 2014

Own your tech to own your destiny.

Let's Talk