diff options
author | Weitian LI <liweitianux@gmail.com> | 2014-04-23 01:43:42 +0800 |
---|---|---|
committer | Weitian LI <liweitianux@gmail.com> | 2014-04-23 01:43:42 +0800 |
commit | 062131495d2a319fcbb58bbdfd2b09626646dea9 (patch) | |
tree | 9e646808b0bf2f83267b3550dac17f79cac49396 | |
parent | 87c76a8d79e106e732bfeb2c259998349f2e79f3 (diff) | |
download | django-skaschool-062131495d2a319fcbb58bbdfd2b09626646dea9.tar.bz2 |
added url to serve MEDIA_ROOT
-rw-r--r-- | django_skaschool/urls.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/django_skaschool/urls.py b/django_skaschool/urls.py index 8aa5ae3..24bd989 100644 --- a/django_skaschool/urls.py +++ b/django_skaschool/urls.py @@ -6,6 +6,7 @@ from django.conf import settings from django.contrib import admin admin.autodiscover() +from django.conf.urls.static import static from django.contrib.staticfiles.urls import staticfiles_urlpatterns from django.views.generic.base import TemplateView @@ -18,6 +19,8 @@ urlpatterns = patterns('', name='index'), # app 'page' url(r'^page/', include('page.urls')), + # app 'notice' + url(r'^notice/', include('notice.urls')), ) ## django-registration @@ -30,5 +33,6 @@ urlpatterns += patterns('', ## staticfiles if settings.DEBUG: urlpatterns += staticfiles_urlpatterns() + urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) |