1 # -*- coding: utf-8 -*-
4 from django.conf.urls.defaults import *
5 from django.conf import settings
6 from django.contrib import admin
8 from catalogue.forms import SearchForm
10 from infopages.models import InfoPage
15 urlpatterns = patterns('',
16 url(r'^katalog/', include('catalogue.urls')),
17 url(r'^materialy/', include('lessons.urls')),
18 url(r'^sugestia/', include('suggest.urls')),
21 url(r'^wolontariat/$', 'infopages.views.infopage', {'slug': 'voluntary_services'}, name='voluntary_services'),
22 url(r'^mozesz-nam-pomoc/$', 'infopages.views.infopage', {'slug': 'help_us'}, name='help_us'),
23 url(r'^o-projekcie/$', 'infopages.views.infopage', {'slug': 'about_us'}, name='about_us'),
24 url(r'^widget/$', 'infopages.views.infopage', {'slug': 'widget'}, name='widget'),
26 url(r'^1procent/$', 'django.views.generic.simple.direct_to_template', {
27 'template': '1percent.html'
31 url(r'^admin/catalogue/book/import$', 'catalogue.views.import_book', name='import_book'),
32 url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
33 url(r'^admin/(.*)$', admin.site.root),
36 url(r'^uzytkownicy/zaloguj/$', 'catalogue.views.login', name='login'),
37 url(r'^uzytkownicy/wyloguj/$', 'catalogue.views.logout_then_redirect', name='logout'),
38 url(r'^uzytkownicy/utworz/$', 'catalogue.views.register', name='register'),
41 (r'^api/', include('api.urls')),
44 url(r'^%s(?P<path>.*)$' % settings.MEDIA_URL[1:], 'django.views.static.serve',
45 {'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),
46 url(r'^%s(?P<path>.*)$' % settings.STATIC_URL[1:], 'django.views.static.serve',
47 {'document_root': settings.STATIC_ROOT, 'show_indexes': True}),
48 url(r'^$', 'django.views.generic.simple.redirect_to', {'url': 'katalog/'}),
49 url(r'^i18n/', include('django.conf.urls.i18n')),
52 if 'rosetta' in settings.INSTALLED_APPS:
53 urlpatterns += patterns('',
54 url(r'^rosetta/', include('rosetta.urls')),