Bad request(400)
Anonymous
FREEOP

3 years ago

I got this error after deployed my project django and jquery

18 Replies

Anonymous
FREEOP

3 years ago

323bc242-c061-4580-91bf-aa7e688f2fec


brody
EMPLOYEE

3 years ago

what's your current start command


Anonymous
FREEOP

3 years ago

I dont use start command, i use release: python manage.py migrate
web: gunicorn disease_prediction.wsgi in Procfile instead


brody
EMPLOYEE

3 years ago

yeah same thing


brody
EMPLOYEE

3 years ago

make sure you have the proper entries in the allowed hosts setting


Anonymous
FREEOP

3 years ago

omg i forgot this ALLOW_HOST, should i use my domain directly?


Anonymous
FREEOP

3 years ago

ALLOWED_HOSTS = ['0.0.0.0'] , that is my config, i remember the first time deployed, railway told me to change port to 0.0.0.0, right ?


brody
EMPLOYEE

3 years ago

you use whatever domain you will be accessing the django app from


brody
EMPLOYEE

3 years ago

that's not how it works, that has nothing to do with what railway told you to do, please read the two docs I have sent you


Anonymous
FREEOP

3 years ago

let me try again


brody
EMPLOYEE

3 years ago

what is your current allowed hosts


Anonymous
FREEOP

3 years ago

i still use 0.0.0.0


brody
EMPLOYEE

3 years ago

please read the documentation I have linked


Anonymous
FREEOP

3 years ago

should i change like this ALLOWED_HOSTS = ['0.0.0.0',
'https://capstoneproject-production-3b77.up.railway.app/'] ?


brody
EMPLOYEE

3 years ago

no, please read the documentation I have linked


Anonymous
FREEOP

3 years ago

it not work


brody
EMPLOYEE

3 years ago

please read the documentation I have linked


fuad47
HOBBY

2 months ago

thanks it should work for me


Loading...