I have a urlpatterns like this:
urlpatterns = patterns('',
...
(r'^(?P<object_id>\d+)/$', 'django.views.generic.list_detail.object_detail', info_dict, 'poll_detail'),
...
My html page template contains this:
{% if error_message %}<p><strong>{{ error_message }}</strong></p>{% endif %}
My view code contains:
return HttpResponseRedirect(reverse('poll_detail',args=(p.id,)))
My question is, where in the reverse() call do I place my 'error_message' variable value?
Apologies if this is a stupid question but I have attempted to search the documentation.