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 d0d171a commit 3e8d2e3Copy full SHA for 3e8d2e3
django_prometheus/tests/end2end/testapp/urls.py
@@ -1,7 +1,13 @@
1
+import django
2
from django.conf.urls import include, url
3
from django.contrib import admin
4
from testapp import views
5
6
+if django.VERSION >= (1, 9, 0):
7
+ admin_urls = admin.site.urls
8
+else:
9
+ admin_urls = include(admin.site.urls)
10
+
11
urlpatterns = [
12
url(r'^$', views.index),
13
url(r'^help$', views.help),
@@ -11,5 +17,5 @@
17
url(r'^newlawn/(?P<location>[a-zA-Z0-9 ]+)$', views.newlawn),
18
url(r'^file$', views.file),
19
url('', include('django_prometheus.urls')),
14
- url(r'^admin/', include(admin.site.urls)),
20
+ url(r'^admin/', admin_urls),
15
21
]
0 commit comments