Use ImageField field

Django model ImageField and FileField of upload_to option is required, its storage path is relative to MEIDA_ROOT come.

Guess you like

Origin www.cnblogs.com/wangshicheng/p/11444785.html