mardi 1 septembre 2015

Django: Run scripts from admin by selecting object's name

I am using Django 1.8 and Python 2.7.8 to create a web interface with MySQL databases, I can just use the Admin page to manipulate different tables. Suppose I have a student object with fields: name, id and gender. How to achieve some function like this:

  • select student's name: just avoid typo in names
  • click a button like "Run script"
  • trigger a Python program to run

I only need output from that Python program like: success or failure.

Thanks very much!




Aucun commentaire:

Enregistrer un commentaire