Logging django models changes.
Project description
# Django simple log
Log model changes on every create/update/delete.
Working with python3.5+ and django1.10. Other version is planned.
## TL;DR
Add to installed apps:
```python
INSTALLED_APPS = (
...
'simple_log',
...
)
```
Add middleware for detecting user:
```python
MIDDLEWARE = [
...
'simple_log.middleware.ThreadLocalMiddleware',
...
]
```
Usage:
```python
import simple_log
simple_log.register()
```
Create Simple Log model:
```python
python manage.py migrate
```
That's all. Now simple log will detect all changes and save old and
new values.
## TODO:
- Docs
- Tests
- python2.7+ support
- django1.8+ support
Log model changes on every create/update/delete.
Working with python3.5+ and django1.10. Other version is planned.
## TL;DR
Add to installed apps:
```python
INSTALLED_APPS = (
...
'simple_log',
...
)
```
Add middleware for detecting user:
```python
MIDDLEWARE = [
...
'simple_log.middleware.ThreadLocalMiddleware',
...
]
```
Usage:
```python
import simple_log
simple_log.register()
```
Create Simple Log model:
```python
python manage.py migrate
```
That's all. Now simple log will detect all changes and save old and
new values.
## TODO:
- Docs
- Tests
- python2.7+ support
- django1.8+ support
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
Close
Hashes for django_simple_log-0.0.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f9b4f62feda2ff3c61bdc96176d9aea1362df49528080c7076ad9ef5a127567 |
|
MD5 | 17fd669a3eb195d71e567de29c77949e |
|
BLAKE2b-256 | a993d09a33b498b889343922791e2535063e10fc4793a3fcbafdb7248263198f |