title: How to execute python manage.py django management command via button on the website on Heroku
body: <p>I have a Django management commands that I would like to run. I would like to have it available for a user by clicking the button and it would execute it. I do not need help to write one - I have them working, but always I need to run them from the terminal like:</p>
  
  <pre><code>heroku run python manage.py syncdata
  </code></pre>
  
  <p>Very convenient would be to just click the button on the running production website and it would start it for me. How can I make this happen on the site running on Heroku?</p>
  
  <p>As a simple example:</p>
  
  <pre><code>from django.core.management.base import BaseCommand
  from project.models import Video
  
  class Command(BaseCommand):
      help = 'Sync Movie / Plays'
  
      def handle(self, *args, **options):
  
          uri_video = Video.objects.all()
          for item in uri_video:
              item.update(title=item.title.capitalize())
  
          print "Done."
  </code></pre>
  
  <p>It is just updating the title which not important.</p>