0👍
✅
You could build a dictionnary, with all your form fields, and use “render_to_response” :
newUser = form.save()
data = {}
for field in dir(newUser):
if isinstance(getattr(newUser, field), Field):
data[field] = getattr(newUser, field)
return render_to_response('summary.html', data, context_instance=RequestContext(request))
and use the variables in your template ?
👤dzen
2👍
You may want to use the sessions, as described in http://docs.djangoproject.com/en/dev/topics/http/sessions/ ?
👤dzen
0👍
You could take a look at the Form Wizard which is included in the formtools contrib app. It’s handy for creating multi-page forms, while keeping all of the data around.
- [Answered ]-Issue happens when installing Django on Windows 7
- [Answered ]-Send param from client datatable to django server code
Source:stackexchange.com