[Django]-How to start a Python script from Django website?

2👍

import yourscript # is in yourscript.py

yourclass = yourscript.Yourclass()
yourclass.run()

Or something like that?

3👍

Here is an article from Guido Van Rossum, who created python, on doing this. Essentially, you just want to invoke your main() function from your controller.

Leave a comment