annotate messages/urls.py @ 1200:b9514abc2a67

Initial commit of ssg101.
author Brian Neal <bgneal@gmail.com>
date Sat, 24 Jun 2023 16:06:51 -0500
parents 5ba2508939f7
children
rev   line source
gremmie@1 1 """urls for the Messages application"""
bgneal@1028 2 from django.conf.urls import url
bgneal@801 3 from django.views.generic.base import RedirectView
bgneal@425 4
bgneal@1028 5 import messages.views
bgneal@1028 6
bgneal@1028 7
bgneal@1028 8 urlpatterns = [
bgneal@429 9 url(r'^$',
bgneal@801 10 RedirectView.as_view(permanent=True, url='/messages/inbox/'),
bgneal@429 11 name='messages-index'),
bgneal@801 12 url(r'^inbox/$',
bgneal@1028 13 messages.views.inbox,
bgneal@429 14 name='messages-inbox'),
bgneal@804 15 url(r'^compose/$',
bgneal@1028 16 messages.views.compose,
bgneal@804 17 name='messages-compose'),
bgneal@801 18 url(r'^outbox/$',
bgneal@1028 19 messages.views.outbox,
bgneal@429 20 name='messages-outbox'),
bgneal@802 21 url(r'^trash/$',
bgneal@1028 22 messages.views.trash,
bgneal@802 23 name='messages-trash'),
bgneal@803 24 url(r'^options/$',
bgneal@1028 25 messages.views.options,
bgneal@803 26 name='messages-options'),
bgneal@818 27 url(r'^bulk/$',
bgneal@1028 28 messages.views.bulk,
bgneal@818 29 name='messages-bulk'),
bgneal@807 30 url(r'^undelete/$',
bgneal@1028 31 messages.views.undelete,
bgneal@807 32 name='messages-undelete'),
bgneal@805 33 url(r'^view/(\d+)/$',
bgneal@1028 34 messages.views.view,
bgneal@805 35 name='messages-view'),
bgneal@810 36 url(r'^report/(\d+)/$',
bgneal@1028 37 messages.views.report,
bgneal@810 38 name='messages-report'),
bgneal@1028 39 ]