Mercurial > public > sg101
comparison messages/urls.py @ 581:ee87ea74d46b
For Django 1.4, rearranged project structure for new manage.py.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 05 May 2012 17:10:48 -0500 |
parents | gpp/messages/urls.py@ddd69a8e07c7 |
children | 6bbd1473d48e |
comparison
equal
deleted
inserted
replaced
580:c525f3e0b5d0 | 581:ee87ea74d46b |
---|---|
1 """urls for the Messages application""" | |
2 from django.conf.urls import patterns, url | |
3 | |
4 urlpatterns = patterns('messages.views', | |
5 url(r'^$', | |
6 'index', | |
7 name='messages-index'), | |
8 url(r'^(inbox|compose|outbox|trash|options)/$', | |
9 'index', | |
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'), | |
21 url(r'^outbox-tab/$', | |
22 'outbox', | |
23 name='messages-outbox'), | |
24 url(r'^trash-tab/$', | |
25 'trash', | |
26 name='messages-trash'), | |
27 url(r'^message/$', | |
28 'message', | |
29 name='messages-message'), | |
30 url(r'^options-tab/$', | |
31 'options', | |
32 name='messages-options'), | |
33 url(r'^compose-tab/$', | |
34 'compose', | |
35 name='messages-compose'), | |
36 url(r'^bulk/$', | |
37 'bulk', | |
38 name='messages-bulk'), | |
39 ) |