ABNML wiki
Attachments
History
Blame
View Source
Changelog
Documentation
About An Otter Wiki
Toggle dark mode
Login
Home
A - Z
Page Index
ScriptFU
python
django
netbox
ScriptFU
python
django
8b2e25
Commit
8b2e25
2024-12-30 13:13:27
Steven Anderson
: added db stuff
ScriptFU/python/django.md
..
@@ 2,3 2,11 @@
#### Run dev server at port 8001
python3 ./manage.py runserver 8001
+
+
#### Inspect DB
+
python ./manage.py inspectdb
+
+
#### Get a Shell on DB
+
python ./manage.py dbshell
+
.tables
+
select * from <table>
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9