简体   繁体   中英

Displaying Apliction error while deploying website app using django to heroku

I created a movie review website using Python-Django I tried to make it live using Heroku but while opening there it is Showing Application Error in Heroku. My app runs fine locally.

Steps I followed to Install Heroku

$sudo snap install --classic Heroku
$heroku login

And then run the following

$pipenv lock
$touch Procfile

Add the following line in wsgi file: " web:gunicorn pages_project.wsgi --log-file -"

$pipenv install gunicorn==19.9.0

Changes in the settings.py

project/settings.py ALLOWED_HOSTS = ['*']

$heroku create
$heroku git:remote -a xxx-yyy-26076
$heroku config:set DISABLE_COLLECTSTATIC=1
$git push heroku master
$heroku ps:scale web=1
$heroku open

Here is my code on Github .

Here is my Website link--> https://fast-island-20902.herokuapp.com/

Checking the Procfile on the Github repository:

web: gunicorn movie_reveiw.wsgi --log-file -

I see a typo on the project name which is actually movie_review . Just change it and the app should run in Heroku without issues.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM