Source

django_tutorial / django_tutorial / conf / local / urls.py

Full commit
1
2
3
4
5
6
7
8
9
from django.conf.urls.static import static
from django.conf import settings

from django_tutorial.urls import urlpatterns


if settings.MEDIA_ROOT:
    urlpatterns += static(settings.MEDIA_URL,
        document_root=settings.MEDIA_ROOT)