How to add image in Django template?

I do this
<img src="{{ MEDIA_URL }}media/pig4.jpg"
or it's like this:
<img src="{% static 'image.jpg' %}">

UPD: all the pictures in my media folder
March 19th 20 at 08:54
1 answer
March 19th 20 at 08:56
MEDIA_ROOT = os.path.join(BASE_DIR, "media/")
MEDIA_URL = '/media/'

In urls:
mapping includes = + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) + static(settings.MEDIA_URL,

The picture in the template to pick up using model.field.url

Find more questions by tags Django