L
L
LakeForest2020-11-05 15:18:08
MySQL
LakeForest, 2020-11-05 15:18:08

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

1 answer(s)
D
Dr. Bacon, 2020-11-05
@LakeForest

https://docs.djangoproject.com/en/3.1/howto/legacy...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question