have you uncomment the lines in the urls.py file???........if not uncomment
the 4th,5th and 16th line in urls.py file And then run the server command.
On Mon, Jun 18, 2012 at 1:06 PM, Laurence MacNeill
<laurence5...@gmail.com>wrote:

> I'm using 1.4
>
> I finally figured out that if I just create the site manually, everything
> works fine...  I don't know why it wasn't being created when syncdb was
> run...
>
> L.
>
>
>
> On Sunday, June 17, 2012 2:17:35 AM UTC-4, Xavier Ordoquy wrote:
>>
>> Hi,
>>
>> The site entry is usually created when the syncdb is run.
>> What Django version are you using ? If you're using the development
>> version, please remove it and install a stable version.
>>
>> Regards,
>> Xavier Ordoquy,
>> Linovia.
>>
>> Le 16 juin 2012 à 23:16, Laurence MacNeill a écrit :
>>
>> 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/adminto 
>> 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<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+unsubscribe@**
>> googlegroups.com <django-users+unsubscr...@googlegroups.com>.
>> For more options, visit this group at http://groups.google.com/**
>> group/django-users?hl=en<http://groups.google.com/group/django-users?hl=en>
>> .
>>
>>
>>  --
> 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/-/FA-ss7hNR50J.
>
> 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.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
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