Monday, February 22, 2016

Re: mathematical function and django connect

the problem in the html form we need to change second input to take multiple values,for example first input take a number
and the second input take many numbers..if the first number = 2 then take second input two numbers,two fields for input i try this but not work

orm action="" method="POST">{% csrf_token %}
  Number of number: <input type="integer" name="total_inputs" value="Number"/>
  <button type="submit" class="btn btn-default">calc</button>
  {% for i in total_inputs %}
             Enter a value: <input type="integer" name="num" value="Total value"/>
            <button type="submit" class="btn btn-default">calc</button>
  {% endfor %}
</form>
show me error in the {% for i in total_inputs %}
Τη Τρίτη, 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+unsubscribe@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/fbeed832-5a26-4863-a39c-a376cf9c8600%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment