Answer the question
In order to leave comments, you need to log in
Django. How to overwrite data from external mysql db to internal sqlite? Or which is better?
The database on the external server is not complete, it lacks the necessary links and some tables, so I wrote my own schema, but data is received in that one. How can I get them to display in templates and use to interact with other tables?
I know that I can connect to an external database through the settings file, but still I don’t understand what to do with models.py, where I described the structure for sqlite.
The names of the model classes do not exactly match those in the external database: for example, in the external database: qwerty_to_q, in the name of the model class for sqlite I wrote: QwertyToQ
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