comparison gpp/gcalendar/urls.py @ 574:ddd69a8e07c7

For Django 1.4, use django.conf.urls instead of django.conf.urls.defaults.
author Brian Neal <bgneal@gmail.com>
date Thu, 03 May 2012 20:45:16 -0500
parents dbd703f7d63a
children
comparison
equal deleted inserted replaced
573:bcc4e8cf841b 574:ddd69a8e07c7
1 """ 1 """
2 URLs for the gcalendar application. 2 URLs for the gcalendar application.
3 """ 3 """
4 from django.conf.urls.defaults import * 4 from django.conf.urls import patterns, url
5 5
6 urlpatterns = patterns('gcalendar.views', 6 urlpatterns = patterns('gcalendar.views',
7 url(r'^$', 'index', name='gcalendar-index'), 7 url(r'^$', 'index', name='gcalendar-index'),
8 url(r'^add/$', 'add_event', name='gcalendar-add'), 8 url(r'^add/$', 'add_event', name='gcalendar-add'),
9 url(r'^change/$', 'edit_events', name='gcalendar-edit_events'), 9 url(r'^change/$', 'edit_events', name='gcalendar-edit_events'),
10 url(r'^change/(\d+)/$', 'edit_event', name='gcalendar-edit_event'), 10 url(r'^change/(\d+)/$', 'edit_event', name='gcalendar-edit_event'),
11 url(r'^delete/$', 'delete_event', name='gcalendar-delete'), 11 url(r'^delete/$', 'delete_event', name='gcalendar-delete'),
12 url(r'^thanks/add/$', 'add_thanks', name='gcalendar-add_thanks'), 12 url(r'^thanks/add/$', 'add_thanks', name='gcalendar-add_thanks'),
13 url(r'^thanks/change/$', 'edit_thanks', name='gcalendar-edit_thanks'), 13 url(r'^thanks/change/$', 'edit_thanks', name='gcalendar-edit_thanks'),
14 ) 14 )
15 # vim: ts=4 sw=4