Mercurial > public > sg101
comparison messages/urls.py @ 801:6bbd1473d48e
Work in progress: rework private messages.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 30 Aug 2014 17:25:38 -0500 |
parents | ee87ea74d46b |
children | dbc389a409f5 |
comparison
equal
deleted
inserted
replaced
800:689db80068c8 | 801:6bbd1473d48e |
---|---|
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 patterns, url |
3 from django.views.generic.base import RedirectView | |
3 | 4 |
4 urlpatterns = patterns('messages.views', | 5 urlpatterns = patterns('', |
5 url(r'^$', | 6 url(r'^$', |
6 'index', | 7 RedirectView.as_view(permanent=True, url='/messages/inbox/'), |
7 name='messages-index'), | 8 name='messages-index'), |
8 url(r'^(inbox|compose|outbox|trash|options)/$', | 9 url(r'^inbox/$', |
9 'index', | 10 'messages.views.inbox', |
10 name='messages-index_named'), | |
11 url(r'^options/$', | |
12 'index', | |
13 kwargs={'tab': 'options'}, | |
14 name='messages-options_tab'), | |
15 url(r'^compose/([\w.@+-]{1,30})/$', | |
16 'compose_to', | |
17 name='messages-compose_to'), | |
18 url(r'^inbox-tab/$', | |
19 'inbox', | |
20 name='messages-inbox'), | 11 name='messages-inbox'), |
21 url(r'^outbox-tab/$', | 12 # url(r'^compose/$', |
22 'outbox', | 13 # 'messages.views.compose', |
14 # name='messages-compose'), | |
15 url(r'^outbox/$', | |
16 'messages.views.outbox', | |
23 name='messages-outbox'), | 17 name='messages-outbox'), |
24 url(r'^trash-tab/$', | 18 # url(r'^trash/$', |
25 'trash', | 19 # 'messages.views.trash', |
26 name='messages-trash'), | 20 # name='messages-trash'), |
27 url(r'^message/$', | 21 # url(r'^options/$', |
28 'message', | 22 # 'messages.views.options', |
29 name='messages-message'), | 23 # name='messages-options'), |
30 url(r'^options-tab/$', | 24 # url(r'^delete/$', |
31 'options', | 25 # 'messages.views.delete', |
32 name='messages-options'), | 26 # name='messages-delete'), |
33 url(r'^compose-tab/$', | 27 # url(r'^undelete/$', |
34 'compose', | 28 # 'messages.views.undelete', |
35 name='messages-compose'), | 29 # name='messages-undelete'), |
36 url(r'^bulk/$', | 30 # url(r'^view/(\d+)/$', |
37 'bulk', | 31 # 'messages.views.view', |
38 name='messages-bulk'), | 32 # name='messages-view'), |
33 # url(r'^report/(\d+)/$', | |
34 # 'messages.views.report', | |
35 # name='messages-report'), | |
39 ) | 36 ) |