I'm going through the standard Django tutorial to create an admin for an app. After commenting the admin related stuff in settings and running syncdb I'm getting this message:
DoesNotExist at /admin/ Site matching query does not exist.
Can anyone help me figure this out?
Sometimes if you add more Sites via Admin and delete some of them each site has an ID, it was not working for me once I changed the ID in the DB it started working, so make sure SITE_ID matches the ID in the database.
In addition to Simeon Visser's answer for those of you still experiencing problems, make sure the
SITE_ID
variable in your settings matches the ID of your newly createdSite
-object.If you use South and initial_data fixtures, data could be loaded not properly. To fix it add
at the end of your settings file