I am following this to deploy a Django project to Heroku and try to create two git remotes. Due to the lack of a django template during the step: File | New | Project | Heroku | Create Heroku App from Template, I selected the Blank Heroku App template.
An then, I set the project to be both PyDev and Django (PyDev | Set as PyDev Project, PyDev | Set as Django Project), followed by copying the following required files from another standard Django project with appropriate changes to the file contains:
manage.py
Profile
requirements.txt
runtime.txt
/<projectName>
__init__.py
settings.py
urls.py
wsgi.py
The final step was to make database migration (Postgres).
Everything went fine locally. However, after I deployed the project successfully to Heroku, I got a "Application Error" message.
What could be the problem?
In addition, could it be that I chose Blank Heroku App and Heroku has no idea that this is a Django project?
heroku logswould be better to investigate ...!django.core.exceptions.ImproperlyConfigured: settings.DATABASES is improperly configured. Please supply the ENGINE value. Check settings documentation for more details.I followed the Heroku's steps to setDATABASES = {'default':dj_database_url.config()}andSECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https'). What have I missed?$heroku addons:add heroku-postgresql).