mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-23 18:13:54 +03:00
13 lines
402 B
Python
13 lines
402 B
Python
from django.conf.urls import include, url
|
|
from django.contrib import admin
|
|
from django.views.decorators.csrf import csrf_exempt
|
|
|
|
from cookbook.schema import schema
|
|
from graphene.contrib.django.views import GraphQLView
|
|
|
|
urlpatterns = [
|
|
url(r'^admin/', admin.site.urls),
|
|
url(r'^graphql', csrf_exempt(GraphQLView.as_view(schema=schema))),
|
|
url(r'^graphiql', include('django_graphiql.urls')),
|
|
]
|