Skip to main content
Datalogger
=====

[![ENV](https://img.shields.io/badge/python-2.7-green.svg)](https://github.com/pylixm/django-datalogger)
[![ENV](https://img.shields.io/badge/django-1.7+-green.svg)](https://github.com/pylixm/django-datalogger)
[![LICENSE](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/pylixm/django-datalogger/master/LICENSE.txt)

Datalogger is a simple Django app to record data changes.

[中文说明](docs/README_zh.md)



Quick start
-----------

1. Installation.
```bash
pip install django-datalogger
```
1. Add `django-datalogger` to your INSTALLED_APPS setting like this::
```python
INSTALLED_APPS = [
...
'django-datalogger',
]
```
1. Add `datalogger.middleware.common.DataUpadataDeleteMiddleware` to your MIDDLEWARE_CLASSES setting like this::
```python
MIDDLEWARE_CLASSES = (
...
'datalogger.middleware.common.DataUpadataDeleteMiddleware',
)
```
1. Run `python manage.py makemigrations` and `python manage.py migrate` to create the `django-datalogger` models.

1. Start your models inherit `LogOnUpdateDeleteModel` abstract model like this:
```python
class TestA(LogOnUpdateDeleteModel):
name = models.CharField( max_length=128, blank=True)
memo = models.TextField()
create_at = models.DateTimeField(blank=True, auto_now_add=True)
update_at = models.DateTimeField(blank=True, auto_now=True)
```
1. Change the test model data by the model api.

1. You will find the data change log in datalogger models.You can visit http://127.0.0.1:8000/admin/
to see these changer.

Metadata

Release files for django-datalogger 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-datalogger 0.1.1
File Size Uploaded Provenance Actions
django-datalogger-0.1.1.zip 7.6 kB Without provenance Details for django-datalogger-0.1.1.zip

Release files / django-datalogger-0.1.1.zip

Download URL django-datalogger-0.1.1.zip
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
63a202258892c86c238ca97133845798867a3ca3f66b309496635bcfe0ca2eb9
BLAKE2b-256 checksum
How to use checksums
a739ee4b01faf78b87c305838415fd78c791dfa35a483e555b5555f56e3d663a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-datalogger 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page