Can't migrate or makemigrations while trying to runserver

You probably have added a new model Gallery but after that you forgot to run makemigrations and migrate on the droplet. Then you added some code to a view function in website/views.py that tries to fetch Gallery models from the DB, but they are non-existing yet so Django gives the error.

To solve this issue, try to comment out every code line in the specific view function, which uses the Gallery model, then create/run migrations.

After that you can uncomment all the codes that use Gallery model, since the respective table is now present in the database, the query will be successful.