On Sat, Jul 10, 2010 at 2:04 AM, Fynn <thieme.san...@googlemail.com> wrote:

> Exception Type: IntegrityError at /comments/post/
> Exception Value: insert or update on table "django_comments" violates
> foreign key constraint "django_comments_site_id_fkey"
> DETAIL:  Key (site_id)=(1) is not present in table "django_site".
>
>
> It is right, the key 1 does not exist in django_site, because I
> deleted example.com via the admin site. I didn't think it was
> important. Was I wrong?
>

Yes. Rather than deleting the example.com site you should have updated it to
contain correct information for your site. Comments is one of the contrib
apps that uses the sites framework. See:
http://docs.djangoproject.com/en/dev/ref/contrib/sites/#how-django-uses-the-sites-framework

Karen
-- 
http://tracey.org/kmt/

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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