X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/357027375ff8867f42ca34bcbfb5a78b5b185fc3..8c32aa5dedbfdee7af4b764e38be8c19a45aa2a2:/src/wolnelektury/urls.py diff --git a/src/wolnelektury/urls.py b/src/wolnelektury/urls.py index 58e45ddb2..f5dddafd3 100644 --- a/src/wolnelektury/urls.py +++ b/src/wolnelektury/urls.py @@ -9,7 +9,8 @@ from django.views.generic import RedirectView import wolnelektury.views -urlpatterns = patterns('wolnelektury.views', +urlpatterns = patterns( + 'wolnelektury.views', url(r'^$', 'main_page', name='main_page'), url(r'^planowane/$', 'publish_plan', name='publish_plan'), url(r'^widget\.html$', 'widget', name='widget'), @@ -29,7 +30,8 @@ urlpatterns = patterns('wolnelektury.views', name='latest_blog_posts'), ) -urlpatterns += patterns('', +urlpatterns += patterns( + '', url(r'^katalog/', include('catalogue.urls')), url(r'^opds/', include('opds.urls')), url(r'^sugestia/', include('suggest.urls')), @@ -67,18 +69,19 @@ urlpatterns += patterns('', url(r'^i18n/', include('django.conf.urls.i18n')), ) -urlpatterns += patterns('', +urlpatterns += patterns( + '', # old static pages - redirected url(r'^1procent/$', RedirectView.as_view( url='http://nowoczesnapolska.org.pl/wesprzyj_nas/', permanent=True)), url(r'^epub/$', RedirectView.as_view( url='/katalog/lektury/', permanent=False)), url(r'^mozesz-nam-pomoc/$', RedirectView.as_view( - url='/info/mozesz-nam-pomoc', permanent=True)), + url='/info/wlacz-sie-w-prace/', permanent=True)), url(r'^o-projekcie/$', RedirectView.as_view( - url='/info/o-projekcie', permanent=True)), + url='/info/o-projekcie/', permanent=True)), url(r'^widget/$', RedirectView.as_view( - url='/info/widget', permanent=True)), + url='/info/widget/', permanent=True)), url(r'^wolontariat/$', RedirectView.as_view( - url='/info/mozesz-nam-pomoc/', permanent=False)), + url='/info/wlacz-sie-w-prace/', permanent=False)), )