Answer the question
In order to leave comments, you need to log in
Django ORM, how to check if a field exists in a database?
There is a situation:
On different production servers, a different state of the tables in the database has turned out.
One server is missing a couple of fields in multiple tables.
The project uses the Django ORM.
Question:
How can I check the presence of these fields in the database with which the migrations interact, and if they are not there, then create them?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question