Django Static Files on Heroku

It’s a fact. Heroku is a great solution for Python web developers. They are the best and truly polyglot hosting solution for web apps. The only thing that took me a while to get working with my Django apps was the static files. I started using S3 as my backend but preferred a simpler solution for very small projects.

I searched around and found a very simple solution.

web: python app/ collectstatic --noinput; bin/gunicorn_django --workers=4 --bind=$PORT app/ 

Just add the collectstatic command to the Procfile.