2013-12-12 16:57:29 +00:00
|
|
|
Installation
|
|
|
|
|
============
|
|
|
|
|
|
|
|
|
|
Installing Auditlog is simple and straightforward. First of all, you need a copy of Auditlog on your system. The easiest
|
|
|
|
|
way to do this is by using the Python Package Index (PyPI). Simply run the following command:
|
|
|
|
|
|
|
|
|
|
``pip install django-auditlog``
|
|
|
|
|
|
|
|
|
|
Instead of installing Auditlog via PyPI, you can also clone the Git repository or download the source code via GitHub.
|
2020-10-23 10:16:27 +00:00
|
|
|
The repository can be found at https://github.com/jazzband/django-auditlog/.
|
2013-12-12 16:57:29 +00:00
|
|
|
|
2015-05-14 23:49:08 +00:00
|
|
|
**Requirements**
|
|
|
|
|
|
2025-10-17 15:51:53 +00:00
|
|
|
- Python 3.10 or higher
|
2025-06-26 16:30:27 +00:00
|
|
|
- Django 4.2, 5.0, 5.1, and 5.2
|
2015-05-14 23:49:08 +00:00
|
|
|
|
2025-10-17 15:51:53 +00:00
|
|
|
Auditlog is currently tested with Python 3.10+ and Django 4.2, 5.0, 5.1, and 5.2. The latest test report can be found
|
2020-11-26 09:45:20 +00:00
|
|
|
at https://github.com/jazzband/django-auditlog/actions.
|
2015-05-14 23:49:08 +00:00
|
|
|
|
2013-12-12 16:57:29 +00:00
|
|
|
Adding Auditlog to your Django application
|
|
|
|
|
------------------------------------------
|
|
|
|
|
|
2015-07-21 23:16:58 +00:00
|
|
|
To use Auditlog in your application, just add ``'auditlog'`` to your project's ``INSTALLED_APPS`` setting and run
|
2015-05-14 22:56:01 +00:00
|
|
|
``manage.py migrate`` to create/upgrade the necessary database structure.
|
2013-12-12 16:57:29 +00:00
|
|
|
|
|
|
|
|
If you want Auditlog to automatically set the actor for log entries you also need to enable the middleware by adding
|
2021-05-28 20:19:48 +00:00
|
|
|
``'auditlog.middleware.AuditlogMiddleware'`` to your ``MIDDLEWARE`` setting. Please check :doc:`usage` for more
|
2015-10-19 14:09:01 +00:00
|
|
|
information.
|