Mercurial > public > sg101
diff gcalendar/urls.py @ 1028:5ba2508939f7
Django 1.8 changes; first batch.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 15 Dec 2015 21:01:07 -0600 |
parents | ee87ea74d46b |
children | deed541ca79d |
line wrap: on
line diff
--- a/gcalendar/urls.py Mon Dec 14 20:42:20 2015 -0600 +++ b/gcalendar/urls.py Tue Dec 15 21:01:07 2015 -0600 @@ -1,14 +1,17 @@ """ URLs for the gcalendar application. """ -from django.conf.urls import patterns, url +from django.conf.urls import url -urlpatterns = patterns('gcalendar.views', - url(r'^$', 'index', name='gcalendar-index'), - url(r'^add/$', 'add_event', name='gcalendar-add'), - url(r'^change/$', 'edit_events', name='gcalendar-edit_events'), - url(r'^change/(\d+)/$', 'edit_event', name='gcalendar-edit_event'), - url(r'^delete/$', 'delete_event', name='gcalendar-delete'), - url(r'^thanks/add/$', 'add_thanks', name='gcalendar-add_thanks'), - url(r'^thanks/change/$', 'edit_thanks', name='gcalendar-edit_thanks'), -) +import gcalendar.views + + +urlpatterns = [ + url(r'^$', gcalendar.views.index, name='gcalendar-index'), + url(r'^add/$', gcalendar.views.add_event, name='gcalendar-add'), + url(r'^change/$', gcalendar.views.edit_events, name='gcalendar-edit_events'), + url(r'^change/(\d+)/$', gcalendar.views.edit_event, name='gcalendar-edit_event'), + url(r'^delete/$', gcalendar.views.delete_event, name='gcalendar-delete'), + url(r'^thanks/add/$', gcalendar.views.add_thanks, name='gcalendar-add_thanks'), + url(r'^thanks/change/$', gcalendar.views.edit_thanks, name='gcalendar-edit_thanks'), +]