Re: Problem in Part2 of the tutorial "DoesNotExist at /admin/"
Thanks for this solution, in my case i guess this happend because i get an error when i was setting the values for the admin user at the project creation step.
El miércoles, 18 de mayo de 2011 12:07:21 UTC-4, Ivan Galic escribió:
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....@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...@googlegroups.com.
> To unsubscribe from this group, send email to django-users...@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 view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/ydyubMdCeP8J.
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.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home