refactoring: replaced locals() by explicit dicts
[wolnelektury.git] / src / wolnelektury / urls.py
index 58e45dd..f5dddaf 100644 (file)
@@ -9,7 +9,8 @@ from django.views.generic import RedirectView
 import wolnelektury.views
 
 
 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'),
     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'),
 )
 
         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')),
     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')),
 )
 
     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(
     # 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(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(r'^widget/$', RedirectView.as_view(
-        url='/info/widget', permanent=True)),
+        url='/info/widget/', permanent=True)),
     url(r'^wolontariat/$', RedirectView.as_view(
     url(r'^wolontariat/$', RedirectView.as_view(
-        url='/info/mozesz-nam-pomoc/', permanent=False)),
+        url='/info/wlacz-sie-w-prace/', permanent=False)),
 )
 )