Mercurial > public > sg101
comparison gpp/forums/urls.py @ 289:0dd8989abef2
Fix regexes for usernames in various urls.py files to match valid Django usernames
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 23 Dec 2010 23:36:53 +0000 |
parents | 8fd4984d5c3b |
children | dd673fae508d |
comparison
equal
deleted
inserted
replaced
288:4ba879ccdc62 | 289:0dd8989abef2 |
---|---|
21 url(r'^mod/topic/stick/(\d+)/$', 'mod_topic_stick', name='forums-mod_topic_stick'), | 21 url(r'^mod/topic/stick/(\d+)/$', 'mod_topic_stick', name='forums-mod_topic_stick'), |
22 url(r'^my-posts/$', 'my_posts', name='forums-my_posts'), | 22 url(r'^my-posts/$', 'my_posts', name='forums-my_posts'), |
23 url(r'^post/(\d+)/$', 'goto_post', name='forums-goto_post'), | 23 url(r'^post/(\d+)/$', 'goto_post', name='forums-goto_post'), |
24 url(r'^post/ip/(\d+)/$', 'post_ip_info', name='forums-post_ip_info'), | 24 url(r'^post/ip/(\d+)/$', 'post_ip_info', name='forums-post_ip_info'), |
25 url(r'^post/new/(?P<topic_id>\d+)/$', 'new_post', name='forums-new_post'), | 25 url(r'^post/new/(?P<topic_id>\d+)/$', 'new_post', name='forums-new_post'), |
26 url(r'^posts/(?P<username>[\w\d-]+)/$', 'posts_for_user', name='forums-posts_for_user'), | 26 url(r'^posts/(?P<username>[\w.@+-]{1,30})/$', 'posts_for_user', name='forums-posts_for_user'), |
27 url(r'^quick-reply/$', 'quick_reply_ajax', name='forums-quick_reply'), | 27 url(r'^quick-reply/$', 'quick_reply_ajax', name='forums-quick_reply'), |
28 url(r'^unanswered/$', 'unanswered_topics', name='forums-unanswered_topics'), | 28 url(r'^unanswered/$', 'unanswered_topics', name='forums-unanswered_topics'), |
29 url(r'^unread/$', 'unread_topics', name='forums-unread_topics'), | 29 url(r'^unread/$', 'unread_topics', name='forums-unread_topics'), |
30 ) | 30 ) |
31 | 31 |