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'^o-projekcie/$', 'django.views.generic.simple.direct_to_template',
19 {'template': 'info/about_us.html', 'extra_context': {'form': SearchForm()}},
23 url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
24 url(r'^admin/(.*)$', admin.site.root),
27 url(r'^uzytkownicy/zaloguj/$', 'catalogue.views.login', name='login'),
28 url(r'^uzytkownicy/wyloguj/$', 'catalogue.views.logout_then_redirect', name='logout'),
29 url(r'^uzytkownicy/utworz/$', 'catalogue.views.register', name='register'),
32 url(r'^media/(?P<path>.*)$', 'django.views.static.serve',
33 {'document_root': os.path.join(os.path.dirname(__file__), 'media'), 'show_indexes': True}),
34 url(r'^$', 'django.views.generic.simple.redirect_to', {'url': 'katalog/'}),