from __future__ import unicode_literals

from django.conf.urls import patterns, include, url
from django.contrib import admin


admin.autodiscover()


urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'fp.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),

    url(r'^admin/', include(admin.site.urls)),
)

@@ -34,16 +34,49 @@
 terals%0A%0A
+from django.conf import settings%0A
 from dja
@@ -138,25 +138,136 @@
 .con
-trib import admin
+f.urls.static import static%0Afrom django.contrib import admin%0Afrom django.contrib.staticfiles.urls import staticfiles_urlpatterns
 %0A%0A%0Aa
@@ -473,8 +473,155 @@
 ls)),%0A)%0A
+%0A%0Aif settings.DEBUG:%0A    urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)%0A    urlpatterns += staticfiles_urlpatterns()%0A

Add django media file serving in debug mode