Error: "relation" django_comments "does not exist"

I am trying to remove users from 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 have no installed comments, I have no django.contrib.comments . I get this error only on the real server, but not on the local host - there I can delete users without problems. Where is the problem?

+6
source share
2 answers

I installed it by adding django.contrib.comments to my INSTALLED_APPS . I do not think this is necessary, but I assume that I used the comments earlier and deleted them later from the project (long-term project). So add it and run syncdb plus migrate.

+3
source

may be the owner of the table modified on the production server. if you use postgresql, you can edit the table using pgadmin3 to find out who the actual owner of the table is. the same will come out with mysql.

0
source

Source: https://habr.com/ru/post/949714/


All Articles