Mercurial > public > sg101
diff messages/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 | cf486a8e8b43 |
children |
line wrap: on
line diff
--- a/messages/urls.py Mon Dec 14 20:42:20 2015 -0600 +++ b/messages/urls.py Tue Dec 15 21:01:07 2015 -0600 @@ -1,36 +1,39 @@ """urls for the Messages application""" -from django.conf.urls import patterns, url +from django.conf.urls import url from django.views.generic.base import RedirectView -urlpatterns = patterns('', +import messages.views + + +urlpatterns = [ url(r'^$', RedirectView.as_view(permanent=True, url='/messages/inbox/'), name='messages-index'), url(r'^inbox/$', - 'messages.views.inbox', + messages.views.inbox, name='messages-inbox'), url(r'^compose/$', - 'messages.views.compose', + messages.views.compose, name='messages-compose'), url(r'^outbox/$', - 'messages.views.outbox', + messages.views.outbox, name='messages-outbox'), url(r'^trash/$', - 'messages.views.trash', + messages.views.trash, name='messages-trash'), url(r'^options/$', - 'messages.views.options', + messages.views.options, name='messages-options'), url(r'^bulk/$', - 'messages.views.bulk', + messages.views.bulk, name='messages-bulk'), url(r'^undelete/$', - 'messages.views.undelete', + messages.views.undelete, name='messages-undelete'), url(r'^view/(\d+)/$', - 'messages.views.view', + messages.views.view, name='messages-view'), url(r'^report/(\d+)/$', - 'messages.views.report', + messages.views.report, name='messages-report'), -) +]