A Log Tool for Django
Project description
Django Global Log
注册到 installed_apps
中
INSTALLED_APPS = [
"corsheaders",
"django_global_log",
···
]
添加 middleware
MIDDLEWARE = [
"corsheaders.middleware.CorsMiddleware",
"django_global_log.middlewares.DjangoGlobalLogMiddleware",
···
]
使用 celery
GLOBAL_LOG_CELERY_FUNC = "async_global_log"
def async_global_log(detail):
DjangoGlobalLog.objects.create(**detail)
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
File details
Details for the file django_global_log-0.0.6.tar.gz
.
File metadata
- Download URL: django_global_log-0.0.6.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c543f2e4c89728cb2b1bf0515409be530b1cbe762d635dc35656d7676afffc5 |
|
MD5 | d3453ca2e31d31a5849a6c19aaaf3e25 |
|
BLAKE2b-256 | c04392020e4f7a65e0626ed92b5e4b4d5fa01eae55432e2043386eff80522b99 |