You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You are facing this error because of older version of django (latest version is 2.2).
To fix it change urlpatterns from these :
url(r'^login/$', auth_views.login, {'template_name': 'login.html'}, name='login'),
url(r'^logout/$', auth_views.logout, {'template_name': 'logged_out.html'}, name='logout'),
to :
url(r'^login/$', auth_views.LoginView.as_view(template_name='login.html'), name='login'),
url(r'^logout/$', auth_views.LogoutView.as_view(template_name='logged_out.html'), name='logout'),
and in setting.py file change MIDDLEWARE_CLASSES to MIDDLEWARE and remove 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
I'm trying to run migrations but I am facing this error
The text was updated successfully, but these errors were encountered: