diff options
| author | Étienne Loks <etienne.loks@proxience.com> | 2015-05-05 13:03:09 +0200 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@proxience.com> | 2015-05-05 13:05:06 +0200 | 
| commit | 3166cbb3aa53406ad693aa7f137effb51b71cb42 (patch) | |
| tree | 333db30d0b6bbb112d77c32ca1b878c8f70ee69a /example_project | |
| parent | ada0ab4962eb437bfbd2b300c5aca69bf5719bfb (diff) | |
| download | Ishtar-3166cbb3aa53406ad693aa7f137effb51b71cb42.tar.bz2 Ishtar-3166cbb3aa53406ad693aa7f137effb51b71cb42.zip  | |
Imports: manage importation interface, error file
Diffstat (limited to 'example_project')
| -rw-r--r-- | example_project/urls.py | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/example_project/urls.py b/example_project/urls.py index e6ea1f37e..0c3b2a07f 100644 --- a/example_project/urls.py +++ b/example_project/urls.py @@ -30,3 +30,9 @@ urlpatterns += patterns('ishtar_common.views',  urlpatterns += patterns('',       (r'^admin/', include(admin.site.urls)),  ) + +if settings.DEBUG: +    # static files (images, css, javascript, etc.) +    urlpatterns += patterns('', +        (r'^media/(?P<path>.*)$', 'django.views.static.serve', { +        'document_root': settings.MEDIA_ROOT}))  | 
