old_contents: from django.urls import path, include
  from django.conf import settings
  from django.contrib import admin
  from django.views.decorators.csrf import csrf_exempt
  from graphapi.views import KeyedGraphQLView
  from graphapi.middleware import QueryProtectionMiddleware
  
  
  urlpatterns = [
      path("djadmin/", admin.site.urls),
      path("accounts/", include("allauth.urls")),
      path("accounts/profile/", include("profiles.urls")),
      path("dashboard/", include("dashboards.urls")),
      path("api/v1/", include("v1.urls")),
      path(
          "graphql",
          csrf_exempt(
              KeyedGraphQLView.as_view(
                  graphiql=True, middleware=[QueryProtectionMiddleware(5000)]
              )
          ),
      ),
      path("", include("public.urls")),
      path("", include("openstates.redirects")),
      path("data/", include("bulk.urls")),
  ]
  
  
  if settings.DEBUG:
      from django.views.defaults import page_not_found, server_error
  
      urlpatterns += [
          path("404/", page_not_found, {"exception": None}),
          path("500/", server_error),
          # url(r'^silk/', include('silk.urls', namespace='silk')),
      ]
  
new_contents: from django.urls import path, include, re_path
  from django.conf import settings
  from django.contrib import admin
  from django.views.decorators.csrf import csrf_exempt
  from graphapi.views import KeyedGraphQLView
  from graphapi.middleware import QueryProtectionMiddleware
  
  
  urlpatterns = [
      path("djadmin/", admin.site.urls),
      path("accounts/", include("allauth.urls")),
      path("accounts/profile/", include("profiles.urls")),
      path("dashboard/", include("dashboards.urls")),
      path("api/v1/", include("v1.urls")),
      re_path(
          "^graphql/?$",
          csrf_exempt(
              KeyedGraphQLView.as_view(
                  graphiql=True, middleware=[QueryProtectionMiddleware(5000)]
              )
          ),
      ),
      path("", include("public.urls")),
      path("", include("openstates.redirects")),
      path("data/", include("bulk.urls")),
  ]
  
  
  if settings.DEBUG:
      from django.views.defaults import page_not_found, server_error
  
      urlpatterns += [
          path("404/", page_not_found, {"exception": None}),
          path("500/", server_error),
          # url(r'^silk/', include('silk.urls', namespace='silk')),
      ]
  
subject: fix re_path issue on graphql