diff options
| author | Natalia <124304+nessita@users.noreply.github.com> | 2025-02-07 14:12:43 -0300 |
|---|---|---|
| committer | Natalia <124304+nessita@users.noreply.github.com> | 2025-02-10 22:59:27 -0300 |
| commit | 0125bc15d4d0de9d92078dc17464bb749567ca99 (patch) | |
| tree | 62cc08d89163efdb54521e722895d2c4bc79c57a /docs/ref | |
| parent | 12517e667b3bd39a62a7a95ccd7c8ad7638098e0 (diff) | |
[5.2.x] Refs #35515 -- Added missing docs for `--no-imports` flag for the shell command.
Backport of 3839afb63ad5183cdf08e06e3a43a014ca4b7263 from main.
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/django-admin.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt index c393154d88..1b3f6297ac 100644 --- a/docs/ref/django-admin.txt +++ b/docs/ref/django-admin.txt @@ -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: |
