how i can use this code in django i want to use use raw input and print in my django python code thats are the code i tried to use the code in html template {% %} but it not work
import time
while True:
a = raw_input()
if a == 'mark':
time.sleep(7)
print('nice name')
if a == 'seco':
time.sleep(7)
print('great name')
else:
print('i didnnot now this name')
time.sleep(10000)
if a == "": # If it is a blank line...
break
Aucun commentaire:
Enregistrer un commentaire