瀏覽代碼

Refs #35515 -- Added missing docs for `--no-imports` flag for the shell command.

Natalia 1 月之前
父節點
當前提交
3839afb63a
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      docs/ref/django-admin.txt

+ 6 - 0
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: