Error following README installation for Django 2.1.2: 'Settings' object has no attribute 'SITE_ID'
Closed this issue · 2 comments
Deleted user commented
I am getting an error
'Settings' object has no attribute 'SITE_ID'
How can I correct this? I am following the instructions on the README for setting up the threaded comments app, but when I provide a template that displays the comments for my article, I get that error on a GET request.
elcone commented
You need to enable the sites framework.
- Add 'django.contrib.sites' to your INSTALLED_APPS in
settings.py
. - Also in
settings.py
setSITE_ID = 1
- Run
python manage migrate
Deleted user commented
Thanks I had 'django.contribe.sites' in my INSTALLED_APPS, the missing piece was setting SITE_ID = 1