Place a file in an object from command-line (Python 3.x only)
You can place this snippet in management/commands/ and have it upload files from disk into objects in your database. Usage: ``` python manage.py upload_file_to_model myapp mymodel myfield 1 field_name /some/file/path ```
- upload
- file
- cli
- command-line
- commandline