Monday 8 May 2017

Displaying image file from django model in jade

I want to render an image file from a django model into a jade template the model is as follows

class Brand
photo = models.FileField(null=True, upload_to= 'brands')
photo_updated_at = models.DateTimeField(default=None)

What is the syntax i use to render it in a jade template?

i do not want to use STATIC_DIRS. is there any way to use MEDIA_ROOT to display in jade



via Anonymous

No comments:

Post a Comment