On Sat, Jul 10, 2010 at 2:04 AM, Fynn <[email protected]> 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

