I've already got a huge index.html that draws from things defined in my index controller. I have another page that does some processing and if it is successful, I would like to render index.html again, but with an added data letting my view know that status was successful. However, I also need all the information of context
to show up in the view to show up. Without repeating context
into def process(request):
what's a good way to let my data dictionary pass into index.html? Thanks
def index(request):
context = RequestContext(request)
context['something'] = 'something'
# much much more
return render_to_response('index.html', context)
def process(request):
data['status'] = 'success'
return ??? ('index.html', context, data?)