X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/0e199a41c0f2375dbf555452bbdc46162fff8853..dfcd58dbea27ffc187606d2e623e6a7902f88ad0:/events/urls.py?ds=inline diff --git a/events/urls.py b/events/urls.py index ebec896..175cba7 100644 --- a/events/urls.py +++ b/events/urls.py @@ -2,11 +2,12 @@ # This file is part of PrawoKultury, licensed under GNU Affero GPLv3 or later. # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. # -from django.conf.urls import patterns, include, url +from django.conf.urls import include, url from django.utils.translation import string_concat, ugettext_lazy as _ +from . import views -urlpatterns = patterns('events.views', - url(r'^$', 'events', name='events'), - url(string_concat('^', _('past'), '/$'), 'events_past', name='events_past'), -) +urlpatterns = [ + url(r'^$', views.events, name='events'), + url(string_concat('^', _('past'), '/$'), views.events_past, name='events_past'), +]