I created a Django project to launch a htmlpage which has a button with name run test
. I would like to run a python script file hello.py
(located outside the django project) when the button is clicked. I am quite new to this scripting.
Can anyone help me with this question as soon as possible? Your help would be appreciated.
My django project consists of following files:
TestProject(project folder)
myapp(folder)
- int.py
- admin.py
- models.py
- tests.py
- urls.py
- views.py
Templates(folder)
- index.html
Testproject(folder)
- int.py
- urls.py
- settings.py
- views.py
- wsgi.py
- admin.py
- manage.py
The python script file-helllo.py
is located C:/hello.py