I'm going through the django tutorial and I'm having difficulties at the 
beginning of the second part...

It tells me to create the admin site, and browse to 127.0.0.1:8000/admin to 
log in to the admin site I just created...  But when I do that, I get the 
python server telling me that the site is not found -- it's not the usual 
apache web-server 404 error, it's definitely coming from the python server, 
so I know that's running properly.

Searching through some of the other posts, I came across one responder who 
asked someone with this same problem to find their site ID in their 
settings.py file.  Mine says the site ID is 1.  So, armed with that 
information, I go to the python shell, and type the following:
>>> from django.contrib.sites.models import Site
>>> Site.objects.get(id=1)

And I get the following in response:
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/usr/lib/python2.6/site-packages/django/db/models/manager.py", line 
131, in get
    return self.get_query_set().get(*args, **kwargs)
  File "/usr/lib/python2.6/site-packages/django/db/models/query.py", line 
366, in get
    % self.model._meta.object_name)
DoesNotExist: Site matching query does not exist.

So, it seems that the entire site doesn't exist?  I've followed every step 
in the tutorial exactly, with no problems so far...  Can anyone help me 
with this?

Thanks,
Laurence MacNeill
Mableton, Georgia, USA

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/Aq18U3mxM1MJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to