Re: Naive redirection programming question

2009-09-03 Thread Spajderix
I don't know if this is the best solution, but I made a context_preocessor which add content from session variable to every template i load. I then put in my layout a variable to show it. Finally, every time I want to show some message i add it to a given variable in session. Code for context

Re: Naive redirection programming question

2009-09-02 Thread Daniel Roseman
On Sep 3, 3:36 am, Rodney Topor wrote: > Suppose you've just processed posted form data and successfully added > a new item to the database.  Now you return HttpResponseRedirect('/ > items/') (I know, you should use a pattern name not an absolute URL > here) to display the list of items, includin

Naive redirection programming question

2009-09-02 Thread Rodney Topor
Suppose you've just processed posted form data and successfully added a new item to the database. Now you return HttpResponseRedirect('/ items/') (I know, you should use a pattern name not an absolute URL here) to display the list of items, including the newly added item. But, suppose you want t