diff options
| author | sage <laymonage@gmail.com> | 2021-07-24 07:09:03 +0700 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-09-01 12:08:02 +0200 |
| commit | 84c7c4a477eae5de394d036d7ba1e58a37e18b69 (patch) | |
| tree | 226181586fa7134a6674517105c0699e0314615f /docs | |
| parent | 3686077d463685d383e14b4695eaaa2658919a42 (diff) | |
Fixed #32309 -- Added --exclude option to startapp/startproject management commands.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/django-admin.txt | 16 | ||||
| -rw-r--r-- | docs/releases/4.0.txt | 3 |
2 files changed, 19 insertions, 0 deletions
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 <django.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 <django.template.Context>` used is: - Any option passed to the ``startproject`` command (among the command's diff --git a/docs/releases/4.0.txt b/docs/releases/4.0.txt index 5849b08cd4..e64f6633ef 100644 --- a/docs/releases/4.0.txt +++ b/docs/releases/4.0.txt @@ -278,6 +278,9 @@ Management Commands <django.core.management.BaseCommand.suppressed_base_arguments>` attribute allows suppressing unsupported default command options in the help output. +* The new :option:`startapp --exclude` and :option:`startproject --exclude` + options allow excluding directories from the template. + Migrations ~~~~~~~~~~ |
