Commit 79d7be19 authored by alexandre's avatar alexandre

serve media urls

parent 9b98dd7d
......@@ -14,7 +14,9 @@ Including another URLconf
2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import include, url
from django.conf.urls.static import static
from django.contrib import admin
from django.conf import settings
from rest_framework import routers
from playground import views
......@@ -33,4 +35,4 @@ urlpatterns = [
url(r'^rest-auth/', include('rest_auth.urls')),
url(r'^', include('playground.urls')),
]
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment