annotate gpp/shoutbox/urls.py @ 507:8631d32e6b16

Some users are still having problems with the pop-up login. I think they are actually getting 403s because of the CSRF protection. So I have modified the base template to always have a javascript variable called csrf_token available when they aren't logged in. The ajax_login.js script was then modified to send this value with the ajax post. Fingers crossed.
author Brian Neal <bgneal@gmail.com>
date Sun, 04 Dec 2011 03:05:21 +0000
parents 7ddd60164245
children ddd69a8e07c7
rev   line source
gremmie@1 1 """
gremmie@1 2 Urls for the Shoutbox application.
gremmie@1 3 """
gremmie@1 4
gremmie@1 5 from django.conf.urls.defaults import *
gremmie@1 6
gremmie@1 7 urlpatterns = patterns('shoutbox.views',
gremmie@1 8 url(r'^delete/$', 'delete', name='shoutbox-delete'),
gremmie@1 9 url(r'^edit/$', 'edit', name='shoutbox-edit'),
bgneal@13 10 url(r'^flag/$', 'flag', name='shoutbox-flag'),
gremmie@1 11 url(r'^shout/$', 'shout', name='shoutbox-shout'),
gremmie@1 12 url(r'^text/$', 'text', name='shoutbox-text'),
bgneal@13 13 url(r'^view/(\d+)/$', 'view_shout', name='shoutbox-view'),
bgneal@243 14 url(r'^view/history/$', 'view_history', name='shoutbox-history'),
gremmie@1 15 )