Ok, I got it to work.

Since the exception said " 'Site'  matching query does not exist", and the docs 
said something about the SITE_ID describing the site in the django_site 
database table, I went ahead and took a look at my (sqlite) database. The 
django_site table was empty, so I added a row with id==1 (the same that I have 
in settings.py) and then it worked. 

However, I still don't understand what went wrong. Who should be responsible 
for putting that table row in the database? I ran syncdb several times (to make 
sure I didn't miss it :) ), but it didn't help.

Ivan

On May 18, 2011, at 8:34 AM, Gabriel Gunderson wrote:

> On Tue, May 17, 2011 at 11:53 AM, igalic <ivan.ga...@gmail.com> wrote:
>> I went through the first part of the tutorial without problems, but
>> when trying to turn on the admin app in tutorial 2, I got this error
>> page with the message stated in subject line.
>> 
>> Here's more info:
>> 
>> Django: latest version from the trunk
>> Python: 2.6.1
>> OS: OSX 10.6.7
>> 
>> Here's the info it gives me:
>> 
>> DoesNotExist at /admin/
>> Site matching query does not exist.
> 
> 
> It looks like it's related to the sites framework:
> http://docs.djangoproject.com/en/dev/ref/contrib/sites/
> 
> I'd have a look at what's in my settings file for SITE_ID and take it
> from there.
> http://docs.djangoproject.com/en/dev/ref/settings/#std:setting-SITE_ID
> 
> Let us know if you don't figure it out.
> 
> 
> Best,
> Gabe
> 
> -- 
> 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.
> 

-- 
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