Django: Can you upload a directory or multiple files in Admin site
You can upload an individual file with the Admin site. However I have a need to upload at least 1 file, but potentially multiple files, for each object.开发者_运维百科 Sometimes there will be sub-directories with these files that must also be uploaded.
Is there a good way to do this in the Admin site? Or would you recommend simply sftp-ing the files across and storing the path to them?
Thank you for your help.
I've only very recently starting working with Django, so do not yet know all the cool features I could be using :-)
Maybe have a look at https://github.com/stefanfoulis/django-filer, it allows multiple files to be uploaded at once.
精彩评论