[Answer]-Table is Not Dropping in PostrgreSQL database

1👍

If you’re using south you may need to run the migrate command. Additionally if it views the migration as already applied it won’t re-run it. Try running the below and then adding the output:

heroku run python manage.py migrate

0👍

Yeah you probably didnt drop the table, you just think you have.

Make sure you are referencing connection correctly first by:

from django db import connection

Use django debug toolbar to see the sql that got executed and what happened. Or possibly use a debug program like pudb on the heroku shell to see whats going on.

👤Rel

Leave a comment