How to get to django interactive shell?

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
Solution:
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...
Jump to solution
4 Replies
Joshie
Joshie2w ago
Where percy? Did I break the bot too 🤣
Solution
Brody
Brody2w 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
Joshie
Joshie2w ago
Perfect, thank you. Works great 👍 (how do you mark answer?)
Brody
Brody2w ago
only mods / admins can mark a message as a solution