Children book formats are added to ZIP archive for shelf.
[wolnelektury.git] / wolnelektury / urls.py
1 # -*- coding: utf-8 -*-
2 import os
3
4 from django.conf.urls.defaults import *
5 from django.contrib import admin
6
7 admin.autodiscover()
8
9 from catalogue.forms import SearchForm
10
11 urlpatterns = patterns('',
12     url(r'^katalog/', include('catalogue.urls')),
13     
14     # Static pages
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()}},
20         name='about_us'),
21     
22     # Admin panel
23     url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
24     url(r'^admin/(.*)$', admin.site.root),
25     
26     # Authentication
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'),
30     
31     # Static files
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/'}),
35 )