I have searched a lot regarding uploading my django project on heroku but I'm unable to do that. Please check the following structure and let me know what is wrong and why I'm getting this error:
File "/app/djangosample1/settings.py", line 17, in import heroku as heroku ModuleNotFoundError: No module named 'heroku'
Structure of my project:
https://github.com/cabudies/djangosample2-master/blob/master/structure.png
Procfile
web: gunicorn djangosample1.wsgi --log-file-
wsgi.py
import os from django.core.wsgi import get_wsgi_application from whitenoise.django import DjangoWhiteNoise
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "djangosample1.settings")
application = get_wsgi_application() application = DjangoWhiteNoise(application)
Also, whenever I'm running 'python manage.py runserver' even on local server, I'm getting error:
SyntaxError: invalid syntax at heroku\helpers.py