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
Add auditlog to your INSTALLED_APPS setting like this:
` INSTALLED_APPS = [` ` …` ` ‘auditlog’,` ` ]`
Include the auditlog_db database settings:
DATABASES = { ` …,` ` ‘auditlog_db’: {` ` ‘ENGINE’: ‘django.db.backends.sqlite3’,` ` ‘NAME’: os.path.join(BASE_DIR, ‘auditlog.sqlite3’),` ` }` ` }`
Run python manage.py migrate to create the auditlog models.
- 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’)
- The acao parameter can be:
1. create 1. update 1. delete
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c590b01404b856e0f8d72d01624be82a8c6d96e07b9103085995ac5e29d8787a
|
|
| MD5 |
be04a3ac36372142153b0fbc80088450
|
|
| BLAKE2b-256 |
865408ebc07eb6ab486337899f8e047a9c6d06d67aebeab7c1e74b3513c8c914
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3673d1c1e607d67090bd7464d101244acdb6a8ca6b5da114e6b61a4bf1548011
|
|
| MD5 |
ddb3138f38e01728972c409820ad16ce
|
|
| BLAKE2b-256 |
29a04717afc50d9e06ac9eaefc5c6e2b8aae6db349fad3e0896077a460070024
|