I have a view that is an input form that people input their information in (name, address, that sort of thing). They will then click an “ok” button.
After people click “ok” I want them to be redirected to a page that has a table with their inputted information.
Any ideas on how to do this?
So far, I have the first view. When clicking OK all the information is stored in a database. I just don’t know how to use it from there.
Note: ModelForms are used
If you look carefully the documentation : https://docs.djangoproject.com/en/dev/topics/forms/#processing-the-data-from-a-form
You could understand that, once you have treated (
is_valid() - cleaned_data['']), you have to do a call torender_to_response('template',{ 'name':name, 'last_name':last_name..}, context_instance=RequestContext(request))And, in the template called, just make the data you need be shown, as usual..