From 84c7c4a477eae5de394d036d7ba1e58a37e18b69 Mon Sep 17 00:00:00 2001 From: sage Date: Sat, 24 Jul 2021 07:09:03 +0700 Subject: Fixed #32309 -- Added --exclude option to startapp/startproject management commands. --- docs/ref/django-admin.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'docs/ref') diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt index 1c8268e192..4d66a3b3aa 100644 --- a/docs/ref/django-admin.txt +++ b/docs/ref/django-admin.txt @@ -1304,6 +1304,14 @@ Specifies which files in the app template (in addition to those matching ``--extension``) should be rendered with the template engine. Defaults to an empty list. +.. django-admin-option:: --exclude DIRECTORIES, -x DIRECTORIES + +.. versionadded:: 4.0 + +Specifies which directories in the app template should be excluded, in addition +to ``.git`` and ``__pycache__``. If this option is not provided, directories +named ``__pycache__`` or starting with ``.`` will be excluded. + The :class:`template context ` used for all matching files is: @@ -1373,6 +1381,14 @@ Specifies which files in the project template (in addition to those matching ``--extension``) should be rendered with the template engine. Defaults to an empty list. +.. django-admin-option:: --exclude DIRECTORIES, -x DIRECTORIES + +.. versionadded:: 4.0 + +Specifies which directories in the project template should be excluded, in +addition to ``.git`` and ``__pycache__``. If this option is not provided, +directories named ``__pycache__`` or starting with ``.`` will be excluded. + The :class:`template context ` used is: - Any option passed to the ``startproject`` command (among the command's -- cgit v1.3