1 # -*- coding: utf-8 -*-
4 from django.conf.urls.defaults import *
5 from django.contrib import admin
9 from catalogue.forms import SearchForm
11 urlpatterns = patterns('',
12 url(r'^katalog/', include('catalogue.urls')),
15 url(r'^wolontariat/$', 'django.views.generic.simple.direct_to_template',
16 {'template': 'info/voluntary_services.html', 'extra_context': {'form': SearchForm()}},
17 name='voluntary_services'),
18 url(r'^mozesz-nam-pomoc/$', 'django.views.generic.simple.direct_to_template',
19 {'template': 'info/help_us.html', 'extra_context': {'form': SearchForm()}},
21 url(r'^o-projekcie/$', 'django.views.generic.simple.direct_to_template',
22 {'template': 'info/about_us.html', 'extra_context': {'form': SearchForm()}},
26 url(r'^admin/catalogue/book/import$', 'catalogue.views.import_book', name='import_book'),
27 url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
28 url(r'^admin/(.*)$', admin.site.root),
31 url(r'^uzytkownicy/zaloguj/$', 'catalogue.views.login', name='login'),
32 url(r'^uzytkownicy/wyloguj/$', 'catalogue.views.logout_then_redirect', name='logout'),
33 url(r'^uzytkownicy/utworz/$', 'catalogue.views.register', name='register'),
36 url(r'^media/(?P<path>.*)$', 'django.views.static.serve',
37 {'document_root': os.path.join(os.path.dirname(__file__), 'media'), 'show_indexes': True}),
38 url(r'^$', 'django.views.generic.simple.redirect_to', {'url': 'katalog/'}),