Django: can you upload a directory or several files on the admin site?

You can upload a separate file using the Admin site. However, I need to upload at least 1 file, but maybe several files for each object. Sometimes subdirectories can also be loaded with these files.

Is there a good way to do this on the admin site? Or would you recommend just transferring the files and saving the path to them?


Thank you for your help.



I just started working with Django recently, so I don’t know all the interesting functions that I could use :-)

+3
source share

Source: https://habr.com/ru/post/1790176/


All Articles