Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Django forms I cannot save picture file

class ExampleModel(models.Model):
    model_pic = models.ImageField(upload_to = 'pic_folder/', default = 'pic_folder/None/no-img.jpg')
Source by coderwall.com #
 
PREVIOUS NEXT
Tagged: #Django #forms #I #save #picture #file
ADD COMMENT
Topic
Name
5+5 =