Yesterday I set up a new Django app and the admin was still ok when I stopped working. This morning I run the server, and I see this error page:
DoesNotExist at /admin/
Site matching query does not exist.
I hadn't touched any of the code or made any changes to the database. While looking for an answer, I saw this post, and indeed, removing 'django.contrib.sites'
from INSTALLED_APPS
in my settings.py
file does "solve" the problem, but now I'm wondering why. I obviously had that line in INSTALLED_APPS
yesterday while I was still working, but I'm wondering why it suddenly stopped working today when I hadn't touched any code since then.