1
0
mirror of https://github.com/django/django.git synced 2025-03-06 07:22:32 +00:00

[5.2.x] Refs #35515 -- Added missing docs for --no-imports flag for the shell command.

Backport of 3839afb63ad5183cdf08e06e3a43a014ca4b7263 from main.
This commit is contained in:
Natalia 2025-02-07 14:12:43 -03:00
parent 12517e667b
commit 0125bc15d4

View File

@ -1111,6 +1111,12 @@ Disables reading the startup script for the "plain" Python interpreter. By
default, the script pointed to by the :envvar:`PYTHONSTARTUP` environment
variable or the ``~/.pythonrc.py`` script is read.
.. django-admin-option:: --no-imports
.. versionadded:: 5.2
Disables the automatic import of models from :setting:`INSTALLED_APPS`.
.. django-admin-option:: --command COMMAND, -c COMMAND
Lets you pass a command as a string to execute it as Django, like so: