diff --git a/conservancy/events/urls.py b/conservancy/events/urls.py index 2f62a4ce2e04be67a5f386d61f73d61595cf6911..94249ed11175b8c9ee96e27d67f710712058b31a 100644 --- a/conservancy/events/urls.py +++ b/conservancy/events/urls.py @@ -1,6 +1,7 @@ -from django.conf.urls import include, patterns, url +from django.urls import re_path from .models import Event +from .views import custom_index info_dict = { 'queryset': Event.objects.all(), @@ -20,6 +21,6 @@ info_dict = { # (r'^ics/$', 'future_event_ics', info_dict), # ) -urlpatterns = patterns('www.events.views', - (r'^.*$', 'custom_index', dict(info_dict, queryset=Event.past.all(), paginate_by=10)), -) +urlpatterns = [ + re_path('', custom_index, dict(info_dict, queryset=Event.past.all(), paginate_by=10)), +]