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-8ec71c0a2b4e
4 Replies
Percy
Percy2y ago
Project ID: 54f28c3c-39cd-456f-ad3f-8ec71c0a2b4e
Adam
Adam2y ago
Railway run only runs the command locally with your service’s environment variables. It doesn’t run the command in the service container
caeresoul
caeresoulOP2y ago
So you suggest to remove dockerfiles and docker compose ?
Adam
Adam2y ago
Railway doesn't support compose, so yes. You can use your Dockerfile though
Want results from more Discord servers?
Add your server