We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2692250 commit fbe5603Copy full SHA for fbe5603
examples/cookbook/cookbook/urls.py
@@ -1,9 +1,10 @@
1
-from django.conf.urls import url
+# from django.conf.urls import url # Deprecated in Django 3.0, see https://stackoverflow.com/a/70319607
2
from django.contrib import admin
3
+from django.urls import re_path
4
5
from graphene_django.views import GraphQLView
6
7
urlpatterns = [
- url(r"^admin/", admin.site.urls),
8
- url(r"^graphql$", GraphQLView.as_view(graphiql=True)),
+ re_path(r"^admin/", admin.site.urls),
9
+ re_path(r"^graphql$", GraphQLView.as_view(graphiql=True)),
10
]
0 commit comments