Skip to content

Instantly share code, notes, and snippets.

@vitorfs
Created November 9, 2018 20:13
Show Gist options
  • Select an option

  • Save vitorfs/0a889e491085f6044bc328ae300b3d19 to your computer and use it in GitHub Desktop.

Select an option

Save vitorfs/0a889e491085f6044bc328ae300b3d19 to your computer and use it in GitHub Desktop.

Revisions

  1. vitorfs created this gist Nov 9, 2018.
    9 changes: 9 additions & 0 deletions urls.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    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)