Bad request(400)

I got this error after deployed my project django and jquery
15 Replies
Percy
Percy13mo ago
Project ID: 323bc242-c061-4580-91bf-aa7e688f2fec
namukun6201
namukun620113mo ago
323bc242-c061-4580-91bf-aa7e688f2fec
Brody
Brody13mo ago
what's your current start command
namukun6201
namukun620113mo ago
I dont use start command, i use release: python manage.py migrate web: gunicorn disease_prediction.wsgi in Procfile instead
namukun6201
namukun620113mo 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
Brody13mo 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
namukun620113mo ago
let me try again
Brody
Brody13mo ago
what is your current allowed hosts
namukun6201
namukun620113mo ago
i still use 0.0.0.0
Brody
Brody13mo ago
please read the documentation I have linked
namukun6201
namukun620113mo ago
should i change like this ALLOWED_HOSTS = ['0.0.0.0', 'https://capstoneproject-production-3b77.up.railway.app/'] ?
Brody
Brody13mo ago
no, please read the documentation I have linked
namukun6201
namukun620113mo ago
it not work
Brody
Brody13mo ago
please read the documentation I have linked