3 years ago
I got this error after deployed my project django and jquery
18 Replies
3 years ago
what's your current start command
I dont use start command, i use release: python manage.py migrate
web: gunicorn disease_prediction.wsgi in Procfile instead
3 years ago
yeah same thing
3 years ago
make sure you have the proper entries in the allowed hosts setting
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 ?
3 years ago
you use whatever domain you will be accessing the django app from
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
3 years ago
what is your current allowed hosts
3 years ago
please read the documentation I have linked
should i change like this ALLOWED_HOSTS = ['0.0.0.0',
'https://capstoneproject-production-3b77.up.railway.app/'] ?
3 years ago
no, please read the documentation I have linked
3 years ago
please read the documentation I have linked