title: How to make heroku automatically run compilemessages just as it runs collectstatic
body: <pre><code>python manage.py compilemessages
  </code></pre>
  
  <p>Creates compiled translation files named like <code>locale/en/LC_MESSAGES/django.mo</code> from translation source files names like <code>locale/en/LC_MESSAGES/django.po</code>.</p>
  
  <p>I would like to have the <code>*.mo</code> files ignored by git and not committed to the repository, as these are not source files.</p>
  
  <p>Heroku already knows to perform</p>
  
  <pre><code>python manage.py collectstatic
  </code></pre>
  
  <p>for django projects.</p>
  
  <p>How do I make it also perform <code>compile messages</code>?</p>
  
  <p>Currently I work around the problem by adding the compilation result files (<code>*.mo</code>) to my repository but I'd like to know if there's a better way.</p>
  
  <p>(If relevant - the repo for my site: <a href="https://github.com/yairchu/vote_tool" rel="noreferrer">https://github.com/yairchu/vote_tool</a>)</p>