I have been working on the Django tutorial and everything has gone perfect so far.
However in part 2, which teaches how to deal with the admin site, I encountered a problem.
After uncommenting the lines for activating the admin site as told in the tutorial I tried to activate the server and proceeded to the admin site to see the following error:
DoesNotExist at /admin/
Site matching query does not exist
Well, with some googling I managed to resolve it by commenting the line in settings.py:
'django.contrib.sites'
Everything seemed to work fine after doing this, but I guess this is a problem since uncommenting this line is not mentioned in the tutorial
Django: 1.4.3
Python: 2.7.3
Uncomment
django.contrib.sitesand runsyncdbcommand. If you have already done that and it doesn’t seem to work and you still want to leavesitesapp uncommented then:Run
./manage.py shellAfter that everything should be just fine. If you would like to modify the new Site record, you can do that in Django admin section
sites.