E
E
Elvis2017-01-11 19:10:48
Django
Elvis, 2017-01-11 19:10:48

What module to use to upload pictures with editor in django admin?

Hey!
Requires admin module. The essence is simple: you need to attach a picture to the news being created. This picture should be in the news itself (which is just implemented) and a thumbnail is needed for the news list. I need functionality so that when creating a news item, I upload a picture and (in a pop-up window, for example) open an editor for me so that I can select the necessary piece for the thumbnail.
Something like this is enough (round is not needed, this is just an example):
695cc2a6eff44831b493b726b2b65f13.PNG
That is, so that you can select the size and area of ​​​​the thumbnail.
If it will be at once in one movement to load both the full picture and the thumbnail, it will be perfect.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Leonov, 2017-01-11
@Dr_Elvis

Look at django-image-cropping

N
Nazar Mokrinsky, 2017-07-03
@mykolaim

1 project == 1 container ?

No, one service == 1 container. That is, if you use Nginx, MariaDB, and something else, then they will all be in separate containers connected by a virtual network and, possibly, will have access to the same data store.
Images are downloaded from repositories when used and updated from there. If you need to customize existing images, then they can be inherited and then reused.
In general, all this is described both on the official website and in a bunch of training articles. You can look at my development where all this is put together, maybe it will be clearer: https://github.com/nazar-pc/docker-webserver

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question