How to get to django interactive shell?

coderjoshdkTRIAL

a year 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

0 Replies

coderjoshdkTRIAL

a year ago

Where percy? Did I break the bot too 🤣


a year ago

railway run python [manage.py](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


coderjoshdkTRIAL

a year ago

Perfect, thank you. Works great 👍


coderjoshdkTRIAL

a year ago

(how do you mark answer?)


a year ago

only mods / admins can mark a message as a solution