How to get to django interactive shell?
coderjoshdk
TRIALOP

2 years ago

Is there a way to connect to a django mange? IE running the interactive shell? How do people normally handle creating a superuser? I did it through a db migration (dump and restore). But is there some more native way? I am now in need of running some interactive shell code on the prod server. Or I would prefer to do it that way, as opposed to writing raw SQL.

project id: 1b326884-0c17-43ed-9b52-f443662e8f50

5 Replies

coderjoshdk
TRIALOP

2 years ago

Where percy? Did I break the bot too 🤣


2 years ago

railway run python manage.py createsuperuser
railway run runs the command on your computer, but it does so with the service variables available to the pass in command


coderjoshdk
TRIALOP

2 years ago

Perfect, thank you. Works great 👍


coderjoshdk
TRIALOP

2 years ago

(how do you mark answer?)


2 years ago

only mods / admins can mark a message as a solution


Loading...