I am still getting the login screen for django admin at localhost:8000/admin/
webapp/urls.py
from django.urls import path, include
from . import views
from django.contrib.auth.decorators import login_required
from django.contrib import admin
admin.autodiscover()
admin.site.login = login_required(admin.site.login)
urlpatterns = [
path('', views.index, name='index'),
path('', include('social_django.urls')),
path('profile/', views.profile),
path('logout/', views.logout),
]
Everything else works. I can use auth0 to access the admin panel if I am already logged in. However, if I’m logged out, the url localhost:8000/admin/ does not redirect me to the auth0 login page.
