[Tutor] how to import python script in the django project
sarantisx at hotmail.com
Thu Feb 18 18:25:16 EST 2016
i want to import python script(with calculator functions) to django app who is the better method to do that and how to do that step by step?
i want to create a web framework where the users give values take somes results from the python scripts
import the script in folder app like this ?
and with some way to connect with app ?
2.second import python script into to html form ?
3.thrird using form to take inputs ?
4.convert(request,response) my python script into to views.py ?(i think so is the better but my problem is how to connect 'input' and 'print' from my python script on the django i dont know how to do this)
5 or with some addons ?
my code fron script:
total_inputs= int(input("number of numbers to input: "))
for i in range (total_inputs)
Num = input("Enter a number: ")
for i in NList:
if i == 1:
More information about the Tutor