title: Django 1.9: Add a custom button to run a python script on clicking in admin site of a app/model
body: <p>I have created an app in a django project. This app has four models. I can add/modify/delete from admin site for all four models. But for one of the four models (say - ModelXYZ), I need to add a custom button for each entry in this table. Currently, I can see "Save", "Delete", etc. buttons for each entry present in ModelXYZ table. 
  I need to add another button "Run", clicking on it will execute a python script written in that app only. Currently, I am running that script like this -</p>
  
  <pre><code>python manage.py shell
  &gt;&gt;&gt; execfile("my_app/my_script_1.py")
  &gt;&gt;&gt; execfile("my_app/my_script_2.py")
  </code></pre>
  
  <p>The script name is also stored in ModelXYZ table for each entry.</p>
  
  <p>Django docs say that the admin site is customizable, but I am not very sure how can I run a python script by clicking on a button.</p>