We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 337e092 commit 86263a2Copy full SHA for 86263a2
django_webserver/tests/django_settings.py
@@ -1,7 +1,10 @@
1
# print("sleeping...")
2
# import time; time.sleep(5)
3
from django.core.wsgi import get_wsgi_application
4
-from django.urls import path
+try:
5
+ from django.urls import re_path as url
6
+except ImportError:
7
+ from django.conf.urls import url
8
9
SECRET_KEY = "s"
10
WSGI_APPLICATION = "django_webserver.tests.django_settings.application"
@@ -17,7 +20,7 @@ def health(request):
17
20
return HttpResponse("ok")
18
21
19
22
-urlpatterns = [path("-/health/", health)]
23
+urlpatterns = [url(r"^-/health/$", health)]
24
25
26
application = get_wsgi_application()
0 commit comments