Hi nara,
This error is normally thrown when the sites app is being used in a
django project. I think it can also occur if the sites tables in the
database is not properly created during django-admin startproject.
Someone else reported that he was able to solve the problem by using a
user name without special characters.

This might be difficult to debug since you are using a development
version however:
1. Go to the inbuilt django shell and enter these commands:
from django.contrib.sites.models import Site
>From django.conf import settings
x = settings.SITE_ID
Site.objects.get(pk=x)

You should get the same "site matching query does not exist" error.
Now print x and then check the django_site_table in your database. x
should be the same as the primary key of what you have in the table.
If it isn't, drop the table and syncdb again.

On 9/10/11, nara <nar...@gmail.com> wrote:
> yes, admin is in INSTALLED_APPS. BTW, the basic site works fine if I
> turn
> off all admin. admin is not strictly necessary, it is just a nicety.
>
> One strange thing though: I have had to set PYTHONPATH and
> explicitly set it to ~/mblog:~/mblog/apps:~/mblog/apps/myblog,
> even though __init__.py files exist at all levels! Could
> something as basic as Python module search be broken?
> I am using latest Python 2.7 on Ubuntu 11.04
>
> Thanks
> Nara
>
> On Sep 9, 5:35 pm, Casey Greene <csgre...@princeton.edu> wrote:
>> Is admin in INSTALLED_APPS?
>>
>> https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-INSTA...
>>
>> Casey
>>
>> On 09/09/2011 07:04 PM, nara wrote:
>>
>>
>>
>>
>>
>>
>>
>> > Hi,
>>
>> > I am a newbie, and I am trying a very basic blog site to get familiar
>> > with the latest development release. I followed the directions in the
>> > tutorial (part 2) to try and get the automatic admin going. However,
>> > here is what I get on the url localhost:8000/admin/
>>
>> > DoesNotExist at /admin/
>>
>> > Site matching query does not exist.
>>
>> > Request Method:    GET
>> > Request URL:      http://localhost:8000/admin/
>> > Django Version:    1.4 pre-alpha SVN-16741
>> > Exception Type:    DoesNotExist
>> > Exception Value:
>>
>> > Site matching query does not exist.
>>
>> > Further, syncdb, even on a brand new database, does not create tables
>> > for the admin, just for django and my blog model.
>>
>> > Ideas, suggestions?
>>
>> > Thanks
>> > Nara
>
> --
> 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.
>
>

-- 
Sent from my mobile device

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