Skip to content

Instantly share code, notes, and snippets.

@agungid
Created March 8, 2018 07:03
Show Gist options
  • Save agungid/ebbf5630916f6e4e4d076f6f3d8601cd to your computer and use it in GitHub Desktop.
Save agungid/ebbf5630916f6e4e4d076f6f3d8601cd to your computer and use it in GitHub Desktop.
from django.conf import settings
from django.conf.urls.static import static
if settings.DEBUG:
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment