Answer the question
In order to leave comments, you need to log in
How In Django, how can I make image field thumbnails?
I am learning Janga and making a simple blog. And I have such a model.
class Article(models.Model):
article_title = models.CharField('Статья', max_length=100)
article_date = models.DateTimeField('Дата ')
article_micro_text = models.TextField('микротекст', blank=True, default='')
article_text =RichTextUploadingField('Текст',blank=True,default='')
article_image = models.ImageField('Изображение',blank=True, upload_to='blog')
# size is "width x height"
cropping = ImageRatioField('article_image', '750x422')
Answer the question
In order to leave comments, you need to log in
https://github.com/matthewwithanm/django-imagekit
https://github.com/jazzband/sorl-thumbnail
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question