Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

A simple Django app to saving logs.

Project description

AuditLog is a simple django-app for saving logs of activities performed on models.

Quick start

  1. Add auditlog to your INSTALLED_APPS setting like this:

` INSTALLED_APPS = [` ` …` ` ‘auditlog’,` ` ]`

  1. Include the auditlog_db database settings:

DATABASES = { ` …,` ` ‘auditlog_db’: {` ` ‘ENGINE’: ‘django.db.backends.sqlite3’,` ` ‘NAME’: os.path.join(BASE_DIR, ‘auditlog.sqlite3’),` ` }` ` }`

  1. Run python manage.py migrate to create the auditlog models.
  2. To saving log use the piece of code in each view that you want to saving audit:
    AuditLogDispatcher.send(sender=NotaFiscal, user=request.user, instance=instance, acao=’some action’)
  3. The acao parameter can be:
    1. create 1. update 1. delete

Project details


Release history Release notifications

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-auditorialog, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size django_auditorialog-0.1-py3-none-any.whl (7.1 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size django-auditorialog-0.1.tar.gz (4.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page