Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

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)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_global_log-0.0.6.tar.gz (5.1 kB view details)

Uploaded Source

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

Hashes for django_global_log-0.0.6.tar.gz
Algorithm Hash digest
SHA256 0c543f2e4c89728cb2b1bf0515409be530b1cbe762d635dc35656d7676afffc5
MD5 d3453ca2e31d31a5849a6c19aaaf3e25
BLAKE2b-256 c04392020e4f7a65e0626ed92b5e4b4d5fa01eae55432e2043386eff80522b99

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.6 This release

1 file

0.0.5

1 file

0.0.4

1 file

0.0.3

1 file

0.0.2

1 file

0.0.1

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page