a year ago
I have no errors in the log, my code has no errors and neither do the variables
0 Replies
a year ago
Are you using cloudflare?
Ah yea, check if you have a line like SECURE_SSL_REDIRECT = True
. If so, get rid of it
And if it isn't the django app but the prisma stuff, it is likely a similar reason. At least, that is what got me once
Well 100% something is trying to do some level of redirect. Railway handles https for you. So if you have some redirect into https type stuff, it causes errors. So, I would start by looking for that type of logic and disabling
and the http://localhost:5756/ have ERRCONNECTIONREFUSED
a year ago
next frontend with a django backend?
a year ago
are you getting the redirects from the frontend or backend domain?
?? Well, this isn't a real site. This is localhost. Not something for you to interact with (unless deployed locally). So what do you mean?
a year ago
send your settings.py please
a year ago
so you arent using django anywhere??
a year ago
how do you mistakenly think you are using django?
I got confused sorry, I have a project in django but it's not this one
a year ago
please take joshie's advice
I'll spend the day on this, I did this almost the whole day before coming here
a year ago
something in your code is sending a redirect
a year ago
try having it trust the proxy headers
NextJS does have middleware builtin. It is likely doing something for you that is causing the redirects. It is mostly DX streamlined for Vercel. But it can be used on other platforms. Just not the typical happy path
a year ago
do tell
a year ago
joshie was right then, it was middleware doing something undesirable, in the future please don't be so dismissive when community members try to help you