from api.schema import schema
from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import include, path
from django.views.decorators.csrf import csrf_exempt

# from strawberry.contrib.django.views import GraphQLView
from api.views import CustomGraphQLView

urlpatterns = [
    path("admin/", admin.site.urls),
    path(
        "graphql", csrf_exempt(CustomGraphQLView.as_view(schema=schema)), name="graphql"
    ),
    path("user/", include("users.urls")),
    path("", include("social_django.urls", namespace="social")),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

from api.schema import schema
from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import include, path
from django.views.decorators.csrf import csrf_exempt

from api.views import CustomGraphQLView

urlpatterns = [
    path("admin/", admin.site.urls),
    path(
        "graphql", csrf_exempt(CustomGraphQLView.as_view(schema=schema)), name="graphql"
    ),
    path("user/", include("users.urls")),
    path("", include("social_django.urls", namespace="social")),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

Remove comment