Can't migrate Postgresql on a Django backend
vl0022
FREEOP

a year ago

I can't access the shell to do migrations

Solved

18 Replies

a year ago

what error are you getting?


vl0022
FREEOP

a year ago

33aa9e97-3365-4183-b1e4-fd4be8ce805e


vl0022
FREEOP

a year ago

I just can't access the shell I tried using the CLI but it says the python manage.py doesn't exist


vl0022
FREEOP

a year ago

ive been at this for hours


a year ago

what commands are you running


vl0022
FREEOP

a year ago

i logged in


vl0022
FREEOP

a year ago

and then i go to my backend/


vl0022
FREEOP

a year ago

and i run railway connect


vl0022
FREEOP

a year ago

then i run railway run python manage.py migrate


a year ago

i think you are looking for railway ssh -- python manage.py migrate


vl0022
FREEOP

a year ago

i dont know if something is wrong but it's not working ive waited up to like 5 minutes when it usually takes 20 - 30 seconds on my local machine


vl0022
FREEOP

a year ago

"Error: WebSocket error: WebSocket protocol error: Connection reset without closing handshake"


vl0022
FREEOP

a year ago

i anaged to migrate it


vl0022
FREEOP

a year ago

but unfortunately all i get is 400 response now


vl0022
FREEOP

a year ago

from my entire backend from all requests


vl0022
FREEOP

a year ago

still no fix


a year ago

400 is coming from your application, it means you have something misconfigured, if I had to guess you don't have the correct allowed hosts or csrf set


a year ago

!s


Status changed to Solved brody 12 months ago


Loading...