Mercurial > public > sg101
comparison 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 |
comparison
equal
deleted
inserted
replaced
1027:cd4db27c90e3 | 1028:5ba2508939f7 |
---|---|
1 """ | 1 """ |
2 URLs for the gcalendar application. | 2 URLs for the gcalendar application. |
3 """ | 3 """ |
4 from django.conf.urls import patterns, url | 4 from django.conf.urls import url |
5 | 5 |
6 urlpatterns = patterns('gcalendar.views', | 6 import gcalendar.views |
7 url(r'^$', 'index', name='gcalendar-index'), | 7 |
8 url(r'^add/$', 'add_event', name='gcalendar-add'), | 8 |
9 url(r'^change/$', 'edit_events', name='gcalendar-edit_events'), | 9 urlpatterns = [ |
10 url(r'^change/(\d+)/$', 'edit_event', name='gcalendar-edit_event'), | 10 url(r'^$', gcalendar.views.index, name='gcalendar-index'), |
11 url(r'^delete/$', 'delete_event', name='gcalendar-delete'), | 11 url(r'^add/$', gcalendar.views.add_event, name='gcalendar-add'), |
12 url(r'^thanks/add/$', 'add_thanks', name='gcalendar-add_thanks'), | 12 url(r'^change/$', gcalendar.views.edit_events, name='gcalendar-edit_events'), |
13 url(r'^thanks/change/$', 'edit_thanks', name='gcalendar-edit_thanks'), | 13 url(r'^change/(\d+)/$', gcalendar.views.edit_event, name='gcalendar-edit_event'), |
14 ) | 14 url(r'^delete/$', gcalendar.views.delete_event, name='gcalendar-delete'), |
15 url(r'^thanks/add/$', gcalendar.views.add_thanks, name='gcalendar-add_thanks'), | |
16 url(r'^thanks/change/$', gcalendar.views.edit_thanks, name='gcalendar-edit_thanks'), | |
17 ] |