M
M
melikbekyan2016-05-17 19:58:40
Django
melikbekyan, 2016-05-17 19:58:40

Why won't nginx django media and static display?

I do according to https://habrahabr.ru/post/226419/
reached the chapter "nginx configuration for working with Django". I do the same as it is written in the article, but media/media.png does not load. What could be the reason?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Bulbashful, 2016-05-20
@Bulbashful

Добавьте в urls.py

urlpatterns = [
...
]+ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question