X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/8559c95597de98e8f6c580e97224ed3ecc9dc5c0..5bb84c5c39ca5c6865f6a417d1b170f3b65e8bce:/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/'}), )