J'ai créé un projet Django pour lancer une page html qui contient un bouton avec le nom run test
. Je voudrais exécuter un fichier python script. hello.py
(situé en dehors du projet django) lorsque le bouton est cliqué. Je suis assez novice en matière de script.
Quelqu'un peut-il m'aider à répondre à cette question le plus rapidement possible ? Votre aide serait appréciée.
Mon projet django se compose des fichiers suivants :
TestProject(dossier du projet)
myapp(folder)
- int .py
- admin.py
- models.py
- tests.py
- urls.py
- views.py
Modèles(dossier)
- index.html
Testproject(dossier)
- int .py
- urls.py
- settings.py
- views.py
- wsgi.py
- admin.py
- manage.py
Le script python script file-helllo.py
est situé C:/hello.py