﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
20896	"Missing a step in ""Activate the admin site"""	Earl Ruby <eruby@…>	nobody	"If you use Django 1.4.5 and follow the steps on https://docs.djangoproject.com/en/1.4/intro/tutorial02/ to ""Activate the admin site"" you'll get a ""DoesNotExist at /admin/"" error page.

With a new installation, the django_site table is empty. It needs at least one record or the admin site will fail with the ""DoesNotExist at /admin/"" error page. To fix the problem:

> python manage.py shell
>>> from django.contrib.sites.models import Site
>>> Site.objects.create(pk=1, domain='YourDomainName', name='YourName')

Please update the https://docs.djangoproject.com/en/1.4/intro/tutorial02/ with this info."	Uncategorized	closed	Documentation	1.4	Normal	worksforme	Admin, DoesNotExist		Unreviewed	1	0	0	0	1	0
