Daniel, Thanks.. point taken
I'm still a bit of a n00b so bear with me: So I'm trying to store the form fields in sessions , user navigates to /search/ and can then use the search form there to search/refine the results. http://dpaste.com/hold/39182/ thats the main form and the code in Django: http://dpaste.com/hold/39184/ Tried creating the session data (if field is in request.GET, add to session data) then deleting it from the session once I've passed that checkbox True/False to the template. in the template I'm checking to see whether that default has passed through then setting the checkbox state on that Al On 29 Apr, 11:07, Daniel Roseman <roseman.dan...@googlemail.com> wrote: > On Apr 29, 10:15 am, Alfonso <allanhender...@gmail.com> wrote: > > > Hi, > > > Leading on from a post I made a few days ago I'm having real trouble > > dealing with sessions to preserve form state and the standard HTML for > > I placed in the template. I can't seem to get to the session data for > > the form once submitted (via GET) and I'm wondering is that due to the > > fact it's a standard HTML form, not a django form? > > > Its a search form that allows users to refine results so I figured > > setting it up as a POST was going to be overkill but now I wonder if > > POST and sessions are connected? Am I going to save time if I rewrite > > the form as a django form (want to avoid that if I can) > > > Thanks anyone > > What do you mean by 'the session data for the form'? Django's sessions > framework only saves data if you tell it to. There's no automatic > session data associated with a Django form. > > Perhaps if you post some code showing what you have done so far and > what you are trying to do, we can help you more. > -- > DR. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---