mirror of
https://github.com/BillyOutlast/posthog.git
synced 2026-02-04 03:01:23 +01:00
13 lines
317 B
Python
13 lines
317 B
Python
import os
|
|
|
|
import django
|
|
|
|
# setup PostHog Django Project
|
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "posthog.settings")
|
|
|
|
# Skip the self-capture API token initialization for Dagster
|
|
# This prevents hanging during database connection in app.ready()
|
|
os.environ["SERVER_GATEWAY_INTERFACE"] = "ASGI"
|
|
|
|
django.setup()
|