[Solved] I keep getting Error while trying to deploy my django app to heroku:[ remote rejected] master -> master (pre-receive hook declined)


I think you need:

settings.py

STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')

and then create a directory “staticfiles” in your project root directory. You have to put some file inside to upload it to git (you can’t upload empty dirs to git).

3

solved I keep getting Error while trying to deploy my django app to heroku:[ remote rejected] master -> master (pre-receive hook declined)