Answers for "django db shell"

3

python django shell command

$ python manage.py shell
...
>>> execfile('myscript.py')
Posted by: Guest on April-03-2020
0

django shell get db info

from django import db
print(db.connections.databases)
Posted by: Guest on August-12-2021
0

how to use django shell

$ ./manage.py shell_plus --bpython
Posted by: Guest on August-02-2020
0

how to use django shell

$ ./manage.py shell_plus --ptpython
Posted by: Guest on August-02-2020

Python Answers by Framework

Browse Popular Code Answers by Language