I
I
Iskander Mammadov2015-02-28 16:36:51
Django
Iskander Mammadov, 2015-02-28 16:36:51

How to get the url of an image loaded in a FileField in a Django model?

The essence of the problem is this:
There is a page with the output of objects through generic views. Each object is displayed in a separate DIV.
It is necessary that in this DIV the background image be the image loaded in the object's FileField.
How to implement it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oscar Django, 2015-02-28
@winordie

djbook.ru/rel1.7/ref/models/fields.html#django.db....

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question