Skip to content

Commit

Permalink
add PATH patch for django_asgi test
Browse files Browse the repository at this point in the history
  • Loading branch information
voidZXL committed Nov 19, 2024
1 parent 8848bd2 commit 6fec92c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_7_ops/django_asgi_site/django_demo/asgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,18 @@
"""

import os
import sys

from django.core.asgi import get_asgi_application

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django_demo.settings")

application = get_asgi_application()

PROJECT_ROOT = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(__file__)))))
sys.path.insert(0, PROJECT_ROOT)
sys.path.insert(0, os.path.dirname(__file__))

from utilmeta.ops import Operations
from utilmeta import UtilMeta
from utilmeta.core import api, response
Expand Down

0 comments on commit 6fec92c

Please sign in to comment.