Skip to main content

A Duration Log Tool for Django

Project description

Django Duration Log

注册到 installed_apps

INSTALLED_APPS = [
    "corsheaders",
    "django_duration_log",
    ···
]

添加 middleware

MIDDLEWARE = [
    "corsheaders.middleware.CorsMiddleware",
    "django_duration_log.middlewares.DjangoDurationLogMiddleware",
    ···
]

配置环境变量

INFLUXDB_ACCESS_TOKEN = os.getenv("INFLUXDB_ACCESS_TOKEN")
INFLUXDB_ORG = os.getenv("INFLUXDB_ORG")
INFLUXDB_BUCKET = os.getenv("INFLUXDB_BUCKET")
INFLUXDB_URL = os.getenv("INFLUXDB_URL")

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_duration_log-0.0.4.tar.gz (3.2 kB view hashes)

Uploaded Source

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