Monday, 15 August 2011

django 1.7 redirect after an ajax call -


I have a visual method that is called through the AJAX request. Redirected to, but I can not redirect to work. If application_type = request.POST ['application_type'] if application_type == 'job': apply_job (request) alif application_type =

  def: = 'availability': to apply (request) Return of Return ('useraccount_dashboard') KeyError: HttpResponseRedirect (reverse_lazy ('useraccount_dashboard') except for messages.error (Request, 'Request Fail!') Other: Extend HTML 404  / Pre> 
< P>

return HTTPRPS ('success') and redirect via javascript.


No comments:

Post a Comment