-
- # Pliki statyczne
- url(r'^media/(?P<path>.*)$', 'django.views.static.serve',
- {'document_root': os.path.join(os.path.dirname(__file__), 'media'), 'show_indexes': True}),
- url(r'^$', 'django.views.generic.simple.redirect_to', {'url': 'katalog/'}),
+ url(r'^uzytkownicy/login/$', 'django.contrib.auth.views.login', name='simple_login'),
+
+ # API
+ (r'^api/', include('api.urls')),
+
+ # Static files
+ url(r'^%s(?P<path>.*)$' % settings.MEDIA_URL[1:], 'django.views.static.serve',
+ {'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),
+ url(r'^%s(?P<path>.*)$' % settings.STATIC_URL[1:], 'django.views.static.serve',
+ {'document_root': settings.STATIC_ROOT, 'show_indexes': True}),
+ url(r'^i18n/', include('django.conf.urls.i18n')),
+)
+
+urlpatterns += patterns('django.views.generic.simple',
+ # old static pages - redirected
+ url(r'^1procent/$', 'redirect_to',
+ {'url': 'http://nowoczesnapolska.org.pl/wesprzyj_nas/'}),
+ url(r'^epub/$', 'redirect_to',
+ {'url': '/katalog/lektury/'}),
+ url(r'^mozesz-nam-pomoc/$', 'redirect_to',
+ {'url': '/info/mozesz-nam-pomoc'}),
+ url(r'^o-projekcie/$', 'redirect_to',
+ {'url': '/info/o-projekcie'}),
+ url(r'^widget/$', 'redirect_to',
+ {'url': '/info/widget'}),
+ url(r'^wolontariat/$', 'redirect_to',
+ {'url': '/info/mozesz-nam-pomoc/'}),