Skip to main content

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 | RSS feed

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.

Source Distribution

django-auditorialog-0.1.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

django_auditorialog-0.1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file django-auditorialog-0.1.tar.gz.

File metadata

  • Download URL: django-auditorialog-0.1.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8

File hashes

Hashes for django-auditorialog-0.1.tar.gz
Algorithm Hash digest
SHA256 c590b01404b856e0f8d72d01624be82a8c6d96e07b9103085995ac5e29d8787a
MD5 be04a3ac36372142153b0fbc80088450
BLAKE2b-256 865408ebc07eb6ab486337899f8e047a9c6d06d67aebeab7c1e74b3513c8c914

See more details on using hashes here.

File details

Details for the file django_auditorialog-0.1-py3-none-any.whl.

File metadata

  • Download URL: django_auditorialog-0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8

File hashes

Hashes for django_auditorialog-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3673d1c1e607d67090bd7464d101244acdb6a8ca6b5da114e6b61a4bf1548011
MD5 ddb3138f38e01728972c409820ad16ce
BLAKE2b-256 29a04717afc50d9e06ac9eaefc5c6e2b8aae6db349fad3e0896077a460070024

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page