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