Hi,
I want to build a page with a form that can be filled out and which sends its data to the same view (context dictionary). So after you would hit the submit button the page would refresh and you would see the result below the form.
Typically you do a redirect to a new URL like in:
def form_view(request):
if request.method == 'POST':
form = Form_Name(request.POST)
if form.is_valid()
# redirect to a new URL:
return HttpResponseRedirect('/new_view/')
So can I update the context dictionary and resend the user to
return HttpResponseRedirect('/form_view/')
?
Thanks