Skip to content

Commit

Permalink
Fix error: deprecated in
Browse files Browse the repository at this point in the history
  • Loading branch information
that-one-arab committed Nov 8, 2024
1 parent 2692250 commit fbe5603
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions examples/cookbook/cookbook/urls.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
from django.conf.urls import url
# from django.conf.urls import url # Deprecated in Django 3.0, see https://stackoverflow.com/a/70319607
from django.contrib import admin
from django.urls import re_path

from graphene_django.views import GraphQLView

urlpatterns = [
url(r"^admin/", admin.site.urls),
url(r"^graphql$", GraphQLView.as_view(graphiql=True)),
re_path(r"^admin/", admin.site.urls),
re_path(r"^graphql$", GraphQLView.as_view(graphiql=True)),
]

0 comments on commit fbe5603

Please sign in to comment.