From cd2e1007e8edb063b441a14f0997c175d1892c67 Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Mon, 13 Jul 2020 00:07:56 +0200 Subject: [PATCH] disable the graphql api/ view, it is causing a 500 error right now --- src/bornhack/urls.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/bornhack/urls.py b/src/bornhack/urls.py index d5c65b6c..db143e5e 100644 --- a/src/bornhack/urls.py +++ b/src/bornhack/urls.py @@ -6,10 +6,8 @@ from django.conf.urls import include from django.contrib import admin from django.contrib.auth.decorators import login_required from django.urls import path -from django.views.decorators.csrf import csrf_exempt from django.views.generic import TemplateView from feedback.views import FeedbackCreate -from graphene_django.views import GraphQLView from info.views import CampInfoView from people.views import PeopleView from sponsors.views import SponsorsView @@ -50,7 +48,7 @@ urlpatterns = [ ), path("admin/", admin.site.urls), # We don't need CSRF checks for the API - path("api/", csrf_exempt(GraphQLView.as_view(graphiql=True))), + # path("api/", csrf_exempt(GraphQLView.as_view(graphiql=True))), path("camps/", CampListView.as_view(), name="camp_list"), path("token/", include("tokens.urls", namespace="tokens")), path("maps/", include("maps.urls", namespace="maps")),