Created superuser from cli not recognised in deployed app
Hi everyone, I deployed an app on railway an now i want to add a superuser to acces to my admin panel. I used the command from cli
railway run python manage.py createsuperuser
and it create it from the command line but after the command raailway up
, I go to the admin page and it throws the error "Please enter the correct username and password for a staff account. Note that both fields may be case-sensitive." but i digited the correct names.
the project id: 54f28c3c-39cd-456f-ad3f-8ec71c0a2b4e4 Replies
Project ID:
54f28c3c-39cd-456f-ad3f-8ec71c0a2b4e
Railway run only runs the command locally with your service’s environment variables. It doesn’t run the command in the service container
So you suggest to remove dockerfiles and docker compose ?
Railway doesn't support compose, so yes. You can use your Dockerfile though