КАК ВЫЙТИ ИЗ SHELL В DJANGO

Чтобы выйти из shell в Django, необходимо выполнить специальную команду exit() или нажать сочетание клавиш Ctrl+D.

Команда exit() завершает текущий сеанс shell и возвращает вас в основное приложение Django.

Пример кода:

python manage.py shell
Python 3.8.5 (default, Jan 27 2021, 15:41:15)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>> exit()

Комбинация клавиш Ctrl+D также прерывает сеанс shell и возвращает вас в основное приложение Django.

Пример кода:

python manage.py shell
Python 3.8.5 (default, Jan 27 2021, 15:41:15)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>> ^D

Django API with Python Shell

Python Interpreter VS Django Shell

How to create user from Django shell -- Python Django

Django shell, как ключ к понимаю. Чего?

Django ORM. Оптимизация запросов к связанным моделям с помощью select_related и prefetch_related.

Python Basics Tutorial Tree And Django Manage Shell Command

Django Shell Create a New DB Record - Python Web Development

Django : python pygame.ru runserver, shell, dbshell freezes on git-bash

Обработка и отслеживание ошибок и исключений в Django

Django Data handling using Shell -- python pygame.ru shell

BLGPG-ADB238403841-24-09-19-20

Новые материалы: