Skip to main content

Django Audit is a simple Django app that tracks and logs requests to your application.

Project description

django-audit

GitHub issues PyPI - Downloads Codecov pre-commit

Django Audit is a simple Django app that tracks and logs requests to your application.

Quick Start

  1. Install django-audit
pip install dj-audit
  1. Add dj_audit to your INSTALLED_APPS:
INSTALLED_APPS = [
    ...,
    "dj_audit"
]
  1. Add dj_audit middleware:
MIDDLEWARE = [
    ...
    "dj_audit.middleware.AuditMiddleware"
]

if you want access to the dj-audit dashboard, then add the following to your urls.py

urlpatterns = [
    path("admin/", admin.site.urls),
    path("dj-audit/", include('dj_audit.urls'))
]
  1. Run migrate
python manage.py migrate

Management commands

flush_auditlog - Cleans up dj-audit AuditLog table

python manage.py flush_auditlog

Test

make test

or with coverage

make coverage_test

Project details


Download files

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

Source Distribution

dj_audit-0.0.7.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dj_audit-0.0.7-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

Details for the file dj_audit-0.0.7.tar.gz.

File metadata

  • Download URL: dj_audit-0.0.7.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for dj_audit-0.0.7.tar.gz
Algorithm Hash digest
SHA256 4625aada1a34370dd504412709c0fafcf67f1f1bb13b40c7f11ae755e6ec0141
MD5 01244e96b26fee85e4f7f0a028081733
BLAKE2b-256 0b5968b9c49205d09dd7918a2f504dc7faafb2f60211cf76a252001d0878b73f

See more details on using hashes here.

File details

Details for the file dj_audit-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: dj_audit-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 14.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for dj_audit-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 ef6ca1395751f752bb34e696fba26726b27d1425c98621ab67d6c41c66ee402a
MD5 b5995d4ffd681ffe8cb0dd2a09cb008b
BLAKE2b-256 004ecd5e1ee93575b1a1fd46a6371fdaabe9d6aaf713b483780cd3c352c81faa

See more details on using hashes here.

Supported by

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