Why stdimage not rendering in my html template?
Closed this issue · 1 comments
MDFARHYN commented
Why image is not rendering in my html template? here is my code:
#models.py
from django.db import models
from PIL import Image
from stdimage import StdImageField
class Contact(models.Model):
name = models.CharField(max_length=200)
image = StdImageField(upload_to="contact/images/",variations={'thumbnail': {'width': 750, 'height': 300}})
#settings.py
added 'stdimage' in my apps
#html
{{myimagefield.thumbnail}}