Heroku & Django: “OSError: No such file or directory: ‘/app/{myappname}/static'”

It’s looking for a folder named ‘static’ that’s next to the settings.py, i.e. in the project folder, not at the root of the git repo.

git root/
git root/{app name}
git root/{app name}/settings.py
git root/{app name}/static/         <- this is what you're missing

Note that empty folders aren’t tracked by git, so you’ll have to put a blank file in there if it’s empty. Alternatively, remove the STATICFILES_DIRS setting until you need it.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)