UI Deploy

Curated, Short, Web UI Dev we Love.

Loading Django FileField and ImageFields from the file system

I don’t know about you, but I run into a situation every so often where I need to programmatically push a file from the local file system or remotely via a URL into a Django model. Using a Python shell, a one off script, or a Django management command.

view source

Advertisement