[Answer]-Django upload file to custom location

1👍

You cannot if I remember right, this kind of operation is in-secure. The file storage backend would warn it.
You could either customize the storage backend, or upload to directory like /media/user_template and set it in TEMPLATE_DIRS.

If you only want to use dynamic templates, check django-dbtemplates as a DB-based solution.

👤okm

0👍

try: models.FileField(upload_to = '...')

Leave a comment