Django Uploaded images not displayed in development
问题 I have defined a model with a 'pic' image field: class Photo(models.Model): title = models.CharField(max_length=100) body = models.TextField() teaser = models.TextField('teaser', blank=True) pic = models.ImageField(upload_to = 'pic_folder/', default = 'pic_folder/None/default.jpg') created=models.DateTimeField(default=datetime.datetime.now) pub_date=models.DateTimeField(default=datetime.datetime.now) categories = models.ManyToManyField(Category, blank=True) likes = models.IntegerField(default