From 9f49610013883af27ae9174466436edb1fc44950 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=AD=C3=B0ir=20Valberg=20Gu=C3=B0mundsson?= Date: Tue, 26 Mar 2019 09:53:06 +0100 Subject: [PATCH] Fixing urls. --- src/bornhack/urls.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/bornhack/urls.py b/src/bornhack/urls.py index e279a348..ba387fc6 100644 --- a/src/bornhack/urls.py +++ b/src/bornhack/urls.py @@ -1,4 +1,5 @@ -from django.conf.urls import include, url +from allauth.account.views import LoginView, LogoutView +from django.conf.urls import include from django.contrib import admin from django.contrib.auth.decorators import login_required from django.urls import path @@ -66,7 +67,7 @@ urlpatterns = [ ), path('accounts/', include('allauth.urls')), path('accounts/', include('allauth_2fa.urls')), - path('admin/', include(admin.site.urls)), + path('admin/', admin.site.urls), # We don't need CSRF checks for the API path('api/', csrf_exempt(GraphQLView.as_view(graphiql=True))),