V
V
Vladislav Koval2021-06-16 10:56:22
Django
Vladislav Koval, 2021-06-16 10:56:22

How to implement the import of a large number of XML and photos in Django?

I need to import a huge number of XML files into a Django database (I use PostgreSQL), which are divided into folders. Moreover, in addition to the XML document with fields, each folder contains photos that also need to be loaded into a specific field. And the most incomprehensible thing for me is whether the system will break in this case, because in the XML file the conditional full name fields are called name_1, name_2, name_3, and in the user model - last_name, first_name, middle_name. Please let me know what tools can be used to accomplish this task.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2021-06-16
@dmtrrr

Write a custom command that will parse files and write data to the database. https://docs.djangoproject.com/en/3.2/howto/custom...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question