summaryrefslogtreecommitdiff
path: root/yaksh/demo_templates/demo_urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh/demo_templates/demo_urls.py')
-rw-r--r--yaksh/demo_templates/demo_urls.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/yaksh/demo_templates/demo_urls.py b/yaksh/demo_templates/demo_urls.py
index b96b476..5abc121 100644
--- a/yaksh/demo_templates/demo_urls.py
+++ b/yaksh/demo_templates/demo_urls.py
@@ -1,5 +1,6 @@
from django.conf.urls import patterns, include, url
-
+from django.conf import settings
+from django.conf.urls.static import static
from django.contrib import admin
admin.autodiscover()
@@ -12,3 +13,4 @@ urlpatterns = patterns('',
url(r'^exam/', include('yaksh.urls', namespace='yaksh', app_name='yaksh')),
url(r'^', include('social.apps.django_app.urls', namespace='social')),
)
+urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) \ No newline at end of file