As another idea, can you just update your SITE_ID setting (http://
docs.djangoproject.com/en/1.2/ref/settings/#site-id)? It defaults to 1
(for the example.com instance), but if you've got a new Site object
for your actual domain, you should just be able to use its id instead.
-Justin

On Jul 10, 7:32 am, Karen Tracey <kmtra...@gmail.com> wrote:
> 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-us...
>
> 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