Skip to content
Can't migrate Postgresql on a Django backend
vl0022
OP

2 years ago

I can't access the shell to do migrations

Solved

18 Replies

2 years ago

what error are you getting?


vl0022
OP

2 years ago

33aa9e97-3365-4183-b1e4-fd4be8ce805e


vl0022
OP

2 years ago

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


vl0022
OP

2 years ago

ive been at this for hours


2 years ago

what commands are you running


vl0022
OP

2 years ago

i logged in


vl0022
OP

2 years ago

and then i go to my backend/


vl0022
OP

2 years ago

and i run railway connect


vl0022
OP

2 years ago

then i run railway run python manage.py migrate


2 years ago

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


vl0022
OP

2 years 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
OP

2 years ago

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


vl0022
OP

2 years ago

i anaged to migrate it


vl0022
OP

2 years ago

but unfortunately all i get is 400 response now


vl0022
OP

2 years ago

from my entire backend from all requests


vl0022
OP

2 years ago

still no fix


2 years 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


2 years ago

!s


Status changed to Solved brody • over 1 year ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...