Mercurial > public > sg101
comparison shoutbox/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 |
comparison
equal
deleted
inserted
replaced
1027:cd4db27c90e3 | 1028:5ba2508939f7 |
---|---|
1 """ | 1 """ |
2 Urls for the Shoutbox application. | 2 Urls for the Shoutbox application. |
3 """ | 3 """ |
4 | 4 |
5 from django.conf.urls import patterns, url | 5 from django.conf.urls import url |
6 | 6 |
7 urlpatterns = patterns('shoutbox.views', | 7 import shoutbox.views |
8 url(r'^delete/$', 'delete', name='shoutbox-delete'), | 8 |
9 url(r'^edit/$', 'edit', name='shoutbox-edit'), | 9 |
10 url(r'^flag/$', 'flag', name='shoutbox-flag'), | 10 urlpatterns = [ |
11 url(r'^shout/$', 'shout', name='shoutbox-shout'), | 11 url(r'^delete/$', shoutbox.views.delete, name='shoutbox-delete'), |
12 url(r'^text/$', 'text', name='shoutbox-text'), | 12 url(r'^edit/$', shoutbox.views.edit, name='shoutbox-edit'), |
13 url(r'^view/(\d+)/$', 'view_shout', name='shoutbox-view'), | 13 url(r'^flag/$', shoutbox.views.flag, name='shoutbox-flag'), |
14 url(r'^view/history/$', 'view_history', name='shoutbox-history'), | 14 url(r'^shout/$', shoutbox.views.shout, name='shoutbox-shout'), |
15 ) | 15 url(r'^text/$', shoutbox.views.text, name='shoutbox-text'), |
16 url(r'^view/(\d+)/$', shoutbox.views.view_shout, name='shoutbox-view'), | |
17 url(r'^view/history/$', shoutbox.views.view_history, name='shoutbox-history'), | |
18 ] |