X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/61b408937a267d27ee7342bc4f172a78e0058835..ec9a0abcd6bf2c7b3bce436a74e48d96c8b713d2:/urls.py diff --git a/urls.py b/urls.py index 0804ca8a3..dfa68fc36 100644 --- a/urls.py +++ b/urls.py @@ -20,7 +20,7 @@ urlpatterns = patterns('', url(r'^uzytkownicy/wyloguj/$', 'django.contrib.auth.views.logout_then_login', name='logout'), # Pliki statyczne - (r'^pliki/(?P.*)$', 'django.views.static.serve', + (r'^media/(?P.*)$', 'django.views.static.serve', {'document_root': os.path.join(os.path.dirname(__file__), 'media'), 'show_indexes': True}), (r'^$', 'django.views.generic.simple.redirect_to', {'url': 'katalog/'}), )