I following Mosh’s Django tutorial, when I get to the point of adding the Django-Debug-Toolbas I get the following error. I tried implementing Mosh’s provided code and still get the same error. I am running the same version of Python and Django that Mosh is using in the tutorial. Any help would be greatly appreciated.
RuntimeError at /
Model class django.contrib.sessions.models.Session doesn’t declare an explicit app_label and isn’t in an application in INSTALLED_APPS.
Request Method: | GET |
---|---|
Request URL: | http://127.0.0.1:8000/ |
Django Version: | 3.2.5 |
Exception Type: | RuntimeError |
Exception Value: | Model class django.contrib.sessions.models.Session doesn’t declare an explicit app_label and isn’t in an application in INSTALLED_APPS. |
Exception Location: | /Users/tim/.local/share/virtualenvs/storefront-PbXoxoQ3/lib/python3.9/site-packages/django/db/models/base.py, line 113, in new |
Python Executable: | /Users/tim/.local/share/virtualenvs/storefront-PbXoxoQ3/bin/python |
Python Version: | 3.9.5 |
Python Path: | [’/Users/tim/storefront’, ‘/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python39.zip’, ‘/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9’, ‘/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/lib-dynload’, ‘/Users/tim/.local/share/virtualenvs/storefront-PbXoxoQ3/lib/python3.9/site-packages’] |
Server time: | Thu, 08 Jul 2021 15:10:18 +0000 |