Cant connect my django app to heroku

Submitted 3 years, 7 months ago
Ticket #113
Views 273
Language/Framework Python
Priority Urgent
Status Closed

Hey there i cannot connect my app.. I tried to follow Corey Shaffer tutorial on how to deploy in heroku but it keeps giving me the same error take a look on my images

It shows this error when I type heroku logs -tail

I need rly help pls
i had to type "heroku config:set DISABLE_COLLECTSTATIC=1" i dont know if i did it well

After doin that tutorial:

Should be like this one:

And not like this:

Ps: i use percentages and bootstrap

Submitted on Sep 01, 20
add a comment

1 Answer

Verified

Looks like you have missed some of your package in requirements.txt file. So make sure you have added all of your packages in to that ,

pip freeze > requirements.txt

Also check this Django Heroku Deployment if it helps.

Submitted 3 years, 7 months ago

ok then why cant you enable the DEBUG=True and push the code , would probably take a look on this issue on UI itself.

- scott 3 years, 7 months ago

I tried to follow that tutorial and check the last image on the post

- BrunoSeixas 3 years, 7 months ago

okay forgot to enter web: gunicorn upcross.wsgi on procfile now it shows the first error again

- BrunoSeixas 3 years, 7 months ago

ah gotcha. what error now?

- scott 3 years, 7 months ago

H10 app crashed

- BrunoSeixas 3 years, 7 months ago

may be try heroku restart

- scott 3 years, 7 months ago

it keeps doing the same error

- BrunoSeixas 3 years, 7 months ago

did you see the same error in UI after you enabled the DEBUG in heroku?

- scott 3 years, 7 months ago

Just to make sure below things are configured properly
pip install gunicorn
web: gunicorn django_project.wsgi in Procfile

- scott 3 years, 7 months ago

do i type web: gunicorn UpCross.wsgi?? Because my project is named UpCross

- BrunoSeixas 3 years, 7 months ago

yes you have to mentioned your project in Procfile.

- scott 3 years, 7 months ago

it was that tnx but now my css is kinda bad i think it didnt upload well how can i fix??

Im goin to show the real one in the post and wrong one

- BrunoSeixas 3 years, 7 months ago

as this is new request, submit the new ticket. So that I will get more points :)

- scott 3 years, 7 months ago

okapa tnx

- BrunoSeixas 3 years, 7 months ago


Latest Blogs