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/$', 'django.contrib.auth.views.login', {'template_name': 'auth/login.html'}, name='login'),
19 url(r'^uzytkownicy/wyloguj/$', 'django.contrib.auth.views.logout_then_login', name='logout'),
22 url(r'^media/(?P<path>.*)$', 'django.views.static.serve',
23 {'document_root': os.path.join(os.path.dirname(__file__), 'media'), 'show_indexes': True}),
24 url(r'^$', 'django.views.generic.simple.redirect_to', {'url': 'katalog/'}),