Bad request(400)

I got this error after deployed my project django and jquery
15 Replies
Percy
Percy2y ago
Project ID: 323bc242-c061-4580-91bf-aa7e688f2fec
namukun6201
namukun6201OP2y ago
323bc242-c061-4580-91bf-aa7e688f2fec
Brody
Brody2y ago
what's your current start command
namukun6201
namukun6201OP2y ago
I dont use start command, i use release: python manage.py migrate web: gunicorn disease_prediction.wsgi in Procfile instead
namukun6201
namukun6201OP2y ago
omg i forgot this ALLOW_HOST, should i use my domain directly? 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
Brody2y ago
you use whatever domain you will be accessing the django app from 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
namukun6201
namukun6201OP2y ago
let me try again
Brody
Brody2y ago
what is your current allowed hosts
namukun6201
namukun6201OP2y ago
i still use 0.0.0.0
Brody
Brody2y ago
please read the documentation I have linked
namukun6201
namukun6201OP2y ago
should i change like this ALLOWED_HOSTS = ['0.0.0.0', 'https://capstoneproject-production-3b77.up.railway.app/'] ?
Brody
Brody2y ago
no, please read the documentation I have linked
namukun6201
namukun6201OP2y ago
it not work
Brody
Brody2y ago
please read the documentation I have linked
Want results from more Discord servers?
Add your server