Shell/Bash: model class django.contrib.sites.models.site doesn't declare an explicit app_label and isn't in an application in installed_apps Example

By

Shell/Bash Example: This is the "model class django.contrib.sites.models.site doesn't declare an explicit app_label and isn't in an application in installed_apps" Example. compiled from many sources on the internet by SimpleTutorials.org

Model class django.contrib.sites.models.Site doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS

Just add 'django.contrib.sites', to INSTALLED_APPS and set SITE_ID = 1 in your settings.py file.



* Summary: This "model class django.contrib.sites.models.site doesn't declare an explicit app_label and isn't in an application in installed_apps" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!

Others