Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wccdev/drf-operation-log
Logging CRUD operation
https://github.com/wccdev/drf-operation-log
django-rest-framework operation-log python
Last synced: about 1 month ago
JSON representation
Logging CRUD operation
- Host: GitHub
- URL: https://github.com/wccdev/drf-operation-log
- Owner: wccdev
- License: apache-2.0
- Created: 2022-04-06T03:11:20.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-06T01:57:13.000Z (almost 2 years ago)
- Last Synced: 2024-11-07T19:54:47.275Z (about 2 months ago)
- Topics: django-rest-framework, operation-log, python
- Language: Python
- Homepage: https://wccdev.github.io/drf-operation-log/
- Size: 667 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# drf-operation-log
[![GitHub license](https://img.shields.io/github/license/anyidea/drf-operation-log)](https://github.com/anyidea/drf-operation-log/blob/master/LICENSE)
[![pypi-version](https://img.shields.io/pypi/v/drf-operation-log.svg)](https://pypi.python.org/pypi/drf-operation-log)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/drf-operation-log)
[![PyPI - DRF Version](https://img.shields.io/badge/djangorestframework-%3E%3D3.0-red)](https://www.django-rest-framework.org)
[![Build Status](https://app.travis-ci.com/aiden520/drfexts.svg?branch=master)](https://app.travis-ci.com/aiden520/drfexts)## Documentation
[click here](https://wccdev.github.io/drf-operation-log/)## Requirement
* Python 3.8, 3.9, 3.10
* Django 3.2, 4.0, 4.1## Installation
Install using pip...
```bash
pip install drf-operation-log
```
Add `'drf_operation_log'` to your `INSTALLED_APPS` setting.
```python
INSTALLED_APPS = [
'django.contrib.admin',
...
'drf_operation_log',
]
```Let's take a look at a quick start of using drf_operation_log to saving operation logs.
Run the `drf_operation_log` migrations using:
```bash
python manage.py migrate drf_operation_log
```Add the following to your `settings.py` module:
```python
INSTALLED_APPS = [
'django.contrib.admin',
...
'drf_operation_log',
]DRF_OPERATION_LOG_SAVE_DATABASE = True
```