Reputation: 1
I am kinda new to python and Django as well so many things still confuse me!I have my Django admin interface with a database on it! The thing i want to do now is the following: I want to be able to run a script from my Djano admin interface either by pushing a "Start" button or clicking on a URL!
Thanks for your time,any small example would be so great!
Have a nice day!
Upvotes: 0
Views: 982
Reputation: 3835
Use Javascript in your template to call the view once a button is clicked, and in your view, call the script. This question's very similar to this one.
Upvotes: 1
Reputation: 9395
I would personally look at something like http://www.celeryproject.org/.
You also need to think about what would happen in the following instances.
Upvotes: 1