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.6.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.6-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dj_audit-0.0.6.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.6.tar.gz
Algorithm Hash digest
SHA256 01348f4d314aafe1a51496f0ba572142131feefca90a1163acdbeaeacb013961
MD5 fa1ae54b0c7c63917a47f462d2fb3ed1
BLAKE2b-256 bd2353b349545fabe5c92730846ac59bef99ba53da1250bdfab085b22b54e0d8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dj_audit-0.0.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 1f1c5d07abe661180537a397ddf38f44d36f70471cd010e4564dd41ae97a1e40
MD5 2a99fe1411fa79eacf86b90593df0cf4
BLAKE2b-256 4f26c09bf338883bc1f0c2ee8c83c4ada99a1fd93218ac0210759e695c08518c

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