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
When loading with Django 2.2, Django returns an error stating 'django.contrib.sessions' must be in INSTALLED_APPS in order to use the admin application.
I'm not sure if the session app registration has changed with the latest Django, but this wasn't an issue with 2.1.x.
On Django 2.2 with adding django.contrib.sessions app to INSTALLED APPS, user sessions still worked and everything was fine.
Now in Django 2.2.1 they require the SessionMiddleware from django which apparently does not work properly with user sessions middleware, because I cannot login a user anymore from the backend.
I do not know if there is something wrong in user sessions or in Django now, but I hope someone can shed some light on this please. Thanks in advance! See my response to the upstream ticket
I am facing this issue right know, but i do not think that doing SILENCED_SYSTEM_CHECKS = ['admin.E410']
is the best way to solve it, is there any other way ? because pip install django-user-sessions is still giving this error on django 2.2.3
Activity
kezabelle commentedon Apr 15, 2019
Related upstream ticket, FWIW.
Lionqueen94 commentedon May 2, 2019
On Django 2.2 with adding django.contrib.sessions app to INSTALLED APPS, user sessions still worked and everything was fine.
Now in Django 2.2.1 they require the SessionMiddleware from django which apparently does not work properly with user sessions middleware, because I cannot login a user anymore from the backend.
I do not know if there is something wrong in user sessions or in Django now, but I hope someone can shed some light on this please. Thanks in advance!
See my response to the upstream ticket
akx commentedon May 2, 2019
The fix in
django-user-sessionsis to simply derive DUS's middleware from the built-in middleware instead of justMiddlewareMixin.For a quick workaround before that's implemented, as per my reply in django/django#11166 (comment) , one can do this in application code:
Add the UserSessionsMiddleware.
Add the UserSessionsMiddleware.
Add the UserSessionsMiddleware.
Bouke commentedon Jan 19, 2020
I've had success with specifying the following setting, does that work for you?
Kailegh commentedon Feb 26, 2020
I am facing this issue right know, but i do not think that doing
SILENCED_SYSTEM_CHECKS = ['admin.E410']is the best way to solve it, is there any other way ? because pip install django-user-sessions is still giving this error on django 2.2.3
pmhoudry commentedon Mar 13, 2020
in 2.2.11 the issue is gone.
franciscojavierarceo commentedon Jun 21, 2020
I'm still seeing this issue in 2.2.13