i find it,just add return render_to_response('blog/calc.html', {'a' :a},context_instance=RequestContext(request)) and dont show me that error,but not work again now if i touch calc button just reload dont show me error dont show me results only clear numbers why ?
<form action="" method="POST">{% csrf_token %} Number of number: <input type="text" name="num" value="Number"/> Enter a value: <input type="text" name="total_input" value="Total value"/> <div class="col-sm-offset-2 col-sm-10"> <button type="submit" class="btn btn-default">calc</button> </div> </form> <p> <div> {{ a }} or full info {% for sm in a%} {{ sm }} {% endfor %} </div> </p> Τη Τρίτη, 9 Φεβρουαρίου 2016 - 9:47:30 μ.μ. UTC+2, ο χρήστης Xristos Xristoou έγραψε: > > hello, > > > i create some python mathematical function on python idle, > i want to create website where the user import value numbers on the > function > and take the results from that. > question one,how to connect my mathematical function on the django? > question two,how to connect input and output from the scipts in the > website ? > the second question i ask because input and output from the function is a > dynamic define from the user > > > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1a0f598a-8552-4316-b57d-4e38563cb39d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.