try using HttpResponseRedirect
return HttpResponseRedirect instead of render_to_response

On Thu, Jan 7, 2010 at 7:21 PM, gilbert F. <gilber...@gmail.com> wrote:

> Hi Django community,
>
> Here is a quick question that I would like to your help. There is an
> Ajax function in my views.py. As this Ajax function creates very big
> data, there seems to be a problem for the function to call call_back
> javaScript function therefore data gets lost. Now I am considering to
> present this large data to end users directly by passing the data to a
> template like
>
> return render_to_response('reporting/traffic_2.html', ....)
>
> I tested this however I found that the current webpage did not get re-
> directed to "traffic_2.html". Can anybody tell me how to do this re-
> direction?
>
> Thanks so much.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>
>
>
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-us...@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.

Reply via email to