How do I run createsuperuser command in Django

I tried to create a super user on Django by following this command but ended up getting the error. railway link railway environment railway run python manage.py createsuperuser
Solution:
locally you need to use the public host and port.
Jump to solution
5 Replies
Percy
Percy4w ago
Project ID: N/A
Solution
Brody
Brody4w ago
locally you need to use the public host and port.
Brody
Brody4w ago
n/a
rajasimon
rajasimonOP4w ago
Oh I thought runinng railway run python manage.py createsuperuser uses the public host and port. So what you're saying is that I need to get the public url from the railway postgres then update my .env file to get it working?
Brody
Brody4w ago
nope, it uses whatever variables you have set on the linked service, you would need to overwrite that locally, a local env file should be sufficient
Want results from more Discord servers?
Add your server