Nicolas Bouliane

Having issues with your first Django deployment on Heroku?

Posted on

After spending a part of the night swearing at Heroku for not seeing my Django app correctly, I have realized it requires a very specific folder structure to operate properly.

In my case, my whole Django project was in a subdirectory of my git repo (git_root > django_project > django_project > settings.py), while Heroku expects the following structure: git_root > django_project > settings.py.

Some other problems I have encountered:

Still in a tough spot? Use heroku logs to figure out what’s going on. If you don’t see any error message, try heroku restart. It will usually generate a few errors to work from.