Mercurial > public > sg101
comparison 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 |
comparison
equal
deleted
inserted
replaced
1027:cd4db27c90e3 | 1028:5ba2508939f7 |
---|---|
1 """urls for the Messages application""" | 1 """urls for the Messages application""" |
2 from django.conf.urls import patterns, url | 2 from django.conf.urls import url |
3 from django.views.generic.base import RedirectView | 3 from django.views.generic.base import RedirectView |
4 | 4 |
5 urlpatterns = patterns('', | 5 import messages.views |
6 | |
7 | |
8 urlpatterns = [ | |
6 url(r'^$', | 9 url(r'^$', |
7 RedirectView.as_view(permanent=True, url='/messages/inbox/'), | 10 RedirectView.as_view(permanent=True, url='/messages/inbox/'), |
8 name='messages-index'), | 11 name='messages-index'), |
9 url(r'^inbox/$', | 12 url(r'^inbox/$', |
10 'messages.views.inbox', | 13 messages.views.inbox, |
11 name='messages-inbox'), | 14 name='messages-inbox'), |
12 url(r'^compose/$', | 15 url(r'^compose/$', |
13 'messages.views.compose', | 16 messages.views.compose, |
14 name='messages-compose'), | 17 name='messages-compose'), |
15 url(r'^outbox/$', | 18 url(r'^outbox/$', |
16 'messages.views.outbox', | 19 messages.views.outbox, |
17 name='messages-outbox'), | 20 name='messages-outbox'), |
18 url(r'^trash/$', | 21 url(r'^trash/$', |
19 'messages.views.trash', | 22 messages.views.trash, |
20 name='messages-trash'), | 23 name='messages-trash'), |
21 url(r'^options/$', | 24 url(r'^options/$', |
22 'messages.views.options', | 25 messages.views.options, |
23 name='messages-options'), | 26 name='messages-options'), |
24 url(r'^bulk/$', | 27 url(r'^bulk/$', |
25 'messages.views.bulk', | 28 messages.views.bulk, |
26 name='messages-bulk'), | 29 name='messages-bulk'), |
27 url(r'^undelete/$', | 30 url(r'^undelete/$', |
28 'messages.views.undelete', | 31 messages.views.undelete, |
29 name='messages-undelete'), | 32 name='messages-undelete'), |
30 url(r'^view/(\d+)/$', | 33 url(r'^view/(\d+)/$', |
31 'messages.views.view', | 34 messages.views.view, |
32 name='messages-view'), | 35 name='messages-view'), |
33 url(r'^report/(\d+)/$', | 36 url(r'^report/(\d+)/$', |
34 'messages.views.report', | 37 messages.views.report, |
35 name='messages-report'), | 38 name='messages-report'), |
36 ) | 39 ] |