Listado de comando de Django más comúnmente usados:
$ mkdir my_project_dir
$ cd my_project_dir
$ python3.11 -m venv .venv
$ source .venv/bin/activate
[VS Code - Ctrl+Alt+P - Python:Select Interpreter]
(.venv) $ python -m pip install --upgrade pip
(.venv) $ pip install django
(.venv) $ django-admin startproject myProject .
(.venv) $ python manage.py startapp myApp
(.venv) $ python manage.py check myApp
[Registrar myApp -- myProject/settings.py: (INSTALLED_APPS=)]
(.venv) $ python manage.py makemigrations
(.venv) $ python manage.py migrate
(.venv) $ python manage.py createsuperuser
[Crear modelos -- myApp/models.py]
(.venv) $ python manage.py makemigrations myApp
(.venv) $ python manage.py sqlmigrate myApp 0001
(.venv) $ python manage.py showmigrations
(.venv) $ python manage.py migrate myApp 0001
(.venv) $ python manage.py migrate myApp zero
(.venv) $ python manage.py runserver 0.0.0.0:8090
(.venv) $ python manage.py shell
[sudo apt-get install sqlite]
(.venv) $ python manage.py dbshell
>>> exec(open('scripts/insert_book.py').read())
>>> exit()
(.venv) $ deactivate
$