Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: "relation "django_comments" does not exist"

I'm trying to delete users from the admin and get this error:

DatabaseError at /admin/users/neverlateuser/
    relation "django_comments" does not exist
    LINE 1: ..._admin", "users_neverlateuser"."date_joined" FROM "django_co...

but I don't have the comments installed, I don't have django.contrib.comments. I get this error only on the live server but not on the local host- there I can delete users with no problem. Where is the problem?

like image 1000
misschoksondik Avatar asked Jul 18 '13 07:07

misschoksondik


1 Answers

I fixed it by adding django.contrib.comments to my INSTALLED_APPS. I don't think this is a must, but I guess I used comments before and removed it later from the project (long-term project). So add it and run syncdb plus migrate.

like image 116
Tobias Lorenz Avatar answered Oct 01 '22 03:10

Tobias Lorenz