1 # -*- coding: utf-8 -*-
2 # This file is part of PrawoKultury, licensed under GNU Affero GPLv3 or later.
3 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
5 from django.conf import settings
6 from django.conf.urls import patterns, include, url
7 from django.contrib import admin
8 from django.contrib.staticfiles.urls import staticfiles_urlpatterns
9 from django.utils.translation import ugettext_lazy as _, string_concat
10 from fnpdjango.utils.urls import i18n_patterns
11 from migdal.urls import urlpatterns as migdal_urlpatterns
15 urlpatterns = patterns('',
16 url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
17 url(r'^admin/', include(admin.site.urls)),
18 url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {
19 'document_root': settings.MEDIA_ROOT,
22 (r'^accounts/login/$', 'django_cas.views.login'),
23 (r'^accounts/logout/$', 'django_cas.views.logout'),
25 url(r'^comments/', include('django_comments_xtd.urls')),
26 url(r'^contact/', include('contact.urls')),
27 ) + migdal_urlpatterns
30 urlpatterns += patterns('',
31 url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {
32 'document_root': settings.MEDIA_ROOT,
36 urlpatterns += staticfiles_urlpatterns()