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