Tutorial needs "disable django.contrib.sites' instruction
|Reported by:||esnolte@…||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
If you're running Django 1.4 and follow the online tutorial (presumably a tutorial for 1.4), you'll encounter the following error when you try to access the admin site (http://127.0.0.1:8000/admin/) in part 2:
DoesNotExist at /admin/
Site matching query does not exist.
The fix is to comment out the "django.contrib.sites" line in INSTALLED_APPS in settings.py.
So part 2 should read:
- Uncomment "django.contrib.admin" in the INSTALLED_APPS setting.
- Comment "django.contrib.sites" in the INSTALLED_APPS setting.
- Run python manage.py syncdb. Since you ...