Skip to main content

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

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

django-simple-log-0.0.4.tar.gz (7.6 kB view hashes)

Uploaded Source

Built Distribution

django_simple_log-0.0.4-py2.py3-none-any.whl (13.3 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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