I deleted a model field (
created_date
) on my local django models.py .
Some of the migrations and / or pulls from Github to pythonanywhere must have failed, and I got "No such column" error. I then dropped the table on sqlite, deleted all migrations files and got "table does not exist".
I managed to recreate all migrations, run
makemigrations
and
migrate
until everything is up to date. But I still get the "no such column" error.
Error code : Exception Value: no such column: suquiwrites_entry.created_date
What I did in the end was to manually recreate all migration files in the bash console, using touch to create and nano to copy paste the content from my local files into the pythonanywhere files. Then I rerun migrate and even though I got the warning Entry has no field named 'created_date', the page is now deployed.
However, now when I run any other command, it's asking me to rerun migrations and I get the same error.
Sorry, we have had to rate-limit your feedback sending. Please try again in a few moments...
Thanks for the feedback! Our tireless devs will get back to you soon.