Skip to content

Instantly share code, notes, and snippets.

View sourav67's full-sized avatar
🎯
Focusing

sourav67

🎯
Focusing
View GitHub Profile
@sourav67
sourav67 / urls.py
Created August 14, 2019 18:19 — forked from vitorfs/urls.py
Serving Django Media Files During Development
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
# Project url patterns...
]
if settings.DEBUG:
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)