#url.py ... (r'^please_wait/', please_wait), (r'^DHM_run/$', run_DHM), ...
#please_wait.html <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"> $.getJSON('{% url run_DHM %}') }); </script> #view.py def please_wait(request): c = {'we_r_home':'yes'} return render_to_response('please_wait.html', c) def run_DHM(request): //put calculated data in request.session return render_to_response('DHM_ran.html', request.session, context_instance=RequestContext(request)) This is the django error Caught NoReverseMatch while rendering: Reverse for 'run_DHM' with arguments '()' and keyword arguments '{}' not found. run_DHM takes 'request' as an argument. How do I pass it the argument?? Bradley On Wed, Sep 8, 2010 at 9:34 PM, Brian Neal <bgn...@gmail.com> wrote: > On Sep 8, 5:56 pm, Bradley Hintze <bradle...@aggiemail.usu.edu> wrote: >> This is what I have in my please_wait.html >> >> <script type="text/javascript" >> src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"> >> $.getJSON('{% url run_DHM %}')}); >> >> </script> > > I don't think that is right, is it? At least I've never seen it done > that way. I think you need two script tags: > > <script type="text/javascript" src="http://ajax.googleapis.com/ajax/ > libs/jquery/1.4/jquery.min.js"></script> > <script type="text/javascript"> > // Your javascript goes here... > </script> > >> >> This is the django error >> >> Caught NoReverseMatch while rendering: Reverse for 'run_DHM' with >> arguments '()' and keyword arguments '{}' not found. >> >> run_DHM takes 'request' as an argument. How do I pass it the argument?? >> > > All views take request as a first argument. But that isn't the > problem. Please post your urls.py that has your run_DHM view in it. > > Regards, > BN > > -- > 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. > > -- Bradley J. Hintze Graduate Student Duke University School of Medicine 801-712-8799 -- 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.