Mercurial > public > sg101
diff 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 |
line wrap: on
line diff
--- a/messages/urls.py Sat Aug 23 14:03:09 2014 -0500 +++ b/messages/urls.py Sat Aug 30 17:25:38 2014 -0500 @@ -1,39 +1,36 @@ """urls for the Messages application""" from django.conf.urls import patterns, url +from django.views.generic.base import RedirectView -urlpatterns = patterns('messages.views', +urlpatterns = patterns('', url(r'^$', - 'index', + RedirectView.as_view(permanent=True, url='/messages/inbox/'), name='messages-index'), - url(r'^(inbox|compose|outbox|trash|options)/$', - 'index', - name='messages-index_named'), - url(r'^options/$', - 'index', - kwargs={'tab': 'options'}, - name='messages-options_tab'), - url(r'^compose/([\w.@+-]{1,30})/$', - 'compose_to', - name='messages-compose_to'), - url(r'^inbox-tab/$', - 'inbox', + url(r'^inbox/$', + 'messages.views.inbox', name='messages-inbox'), - url(r'^outbox-tab/$', - 'outbox', +# url(r'^compose/$', +# 'messages.views.compose', +# name='messages-compose'), + url(r'^outbox/$', + 'messages.views.outbox', name='messages-outbox'), - url(r'^trash-tab/$', - 'trash', - name='messages-trash'), - url(r'^message/$', - 'message', - name='messages-message'), - url(r'^options-tab/$', - 'options', - name='messages-options'), - url(r'^compose-tab/$', - 'compose', - name='messages-compose'), - url(r'^bulk/$', - 'bulk', - name='messages-bulk'), +# url(r'^trash/$', +# 'messages.views.trash', +# name='messages-trash'), +# url(r'^options/$', +# 'messages.views.options', +# name='messages-options'), +# url(r'^delete/$', +# 'messages.views.delete', +# name='messages-delete'), +# url(r'^undelete/$', +# 'messages.views.undelete', +# name='messages-undelete'), +# url(r'^view/(\d+)/$', +# 'messages.views.view', +# name='messages-view'), +# url(r'^report/(\d+)/$', +# 'messages.views.report', +# name='messages-report'), )