1 # -*- coding: utf-8 -*-
4 from django.conf.urls.defaults import *
5 from django.contrib import admin
10 urlpatterns = patterns('',
11 url(r'^katalog/', include('catalogue.urls')),
13 # Panel administracyjny
14 url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
15 url(r'^admin/(.*)$', admin.site.root),
18 url(r'^uzytkownicy/zaloguj/$', 'catalogue.views.login', name='login'),
19 url(r'^uzytkownicy/wyloguj/$', 'catalogue.views.logout_then_redirect', name='logout'),
20 url(r'^uzytkownicy/utworz/$', 'catalogue.views.register', name='register'),
23 url(r'^media/(?P<path>.*)$', 'django.views.static.serve',
24 {'document_root': os.path.join(os.path.dirname(__file__), 'media'), 'show_indexes': True}),
25 url(r'^$', 'django.views.generic.simple.redirect_to', {'url': 'katalog/'}),