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
RuntimeError: Model class django.contrib.sessions.models.Session doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS #155
I did the following steps according to documentation:
In setting.py INSTALLED_APPS block I replaced django.contrib.sessions to user_sessions
In setting.py MIDDLEWARE replaced django.contrib.sessions.middleware.SessionMiddleware to user_sessions.middleware.SessionMiddleware
In setting.py added SESSION_ENGINE = 'user_sessions.backends.db' SILENCED_SYSTEM_CHECKS = ['admin.E410']
In projects main urls.py added path('', include('user_sessions.urls', namespace='user_sessions'))
When I am making python manage.py migrate I get the following error: RuntimeError: Model class django.contrib.sessions.models.Session doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.
Difference in versions
Latest version in release notes is 2.0.0
But in pypi.org the latest version is 1.7.1.
I have installed 1.7.1 using pip. How can I get the 2.0.0 version? Maybe this would fix the error I get.