31👍
✅
Adding “SITE_ID = 1” to your settings will get you past the exception
without having to add it to INSTALLED_APPS. It worked for me.
1👍
FYI. Enabling the sites framework has been changed in Django v1.6 see here for details…
https://docs.djangoproject.com/en/1.6/ref/contrib/sites/
Once you have added ‘django.contrib.sites’, to your INSTALLED_APPS then the domain will be created in the database, id = 1, domain = example.com, name = example.com.
- What is the right way to use angular2 http requests with Django CSRF protection?
- Getting error with is_popup variable in django 1.9
Source:stackexchange.com