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
9be329
Commit
9be329
2025-01-07 13:27:12
Steven Anderson
: add translation
ScriptFU/python/django.md
..
@@ 1,13 1,13 @@
# django
#### Run dev server at port 8001
-
python3 ./manage.py runserver 8001
+
python3 manage.py runserver 8001
#### Inspect DB
-
python ./manage.py inspectdb
+
python manage.py inspectdb
#### Get a Shell on DB
-
python ./manage.py dbshell
+
python manage.py dbshell
.tables
select * from <table>
@@ 15,5 15,11 @@
.schema <table>
#### Update models
-
python ./manage.py makemigrations <classmodel>
-
python ./manage.py migrate
+
python manage.py makemigrations <classmodel>
+
python manage.py migrate
+
+
#### Make Translation Messages
+
python manage.py makemessages -l en -l pt_BR
+
+
#### Compile Translations
+
python manage.py compilemessages
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