S
S
Sergey Nizhny Novgorod2016-06-16 02:30:22
Django
Sergey Nizhny Novgorod, 2016-06-16 02:30:22

How to display an image of the desired size in a template in Django?

Hello.
Situation:
1) The user uploads any photo through the form.
2) The image 150x150 obtained from what was loaded at step 1 is displayed in the template.
What libraries are there for this task?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2016-06-16
@Terras

https://www.djangopackages.com/grids/g/thumbnails/
https://readthedocs.org/projects/sorl-thumbnail/
or make nginx do that

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question