From bc21bc4282d854053c1218e8fb3ea39387ccca72 Mon Sep 17 00:00:00 2001 From: Bruno Alla Date: Sun, 27 Apr 2025 12:01:24 +0200 Subject: Fixed #18296 -- Created missing custom target directory for startproject and startapp. --- docs/ref/django-admin.txt | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'docs/ref') diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt index 74413b78f9..a1603c9e84 100644 --- a/docs/ref/django-admin.txt +++ b/docs/ref/django-admin.txt @@ -1266,9 +1266,13 @@ By default, :source:`the new directory ` contains a ``models.py`` file and other app template files. If only the app name is given, the app directory will be created in the current working directory. -If the optional destination is provided, Django will use that existing -directory rather than creating a new one. You can use '.' to denote the current -working directory. +If the optional destination is provided, Django will use that name instead. If +the directory with the given name doesn't exist, it will be created. You can +use '.' to denote the current working directory. + +.. versionchanged:: 6.0 + + Automatic creation of the destination directory was added. For example: @@ -1378,9 +1382,14 @@ If only the project name is given, both the project directory and project package will be named ```` and the project directory will be created in the current working directory. -If the optional destination is provided, Django will use that existing -directory as the project directory, and create ``manage.py`` and the project -package within it. Use '.' to denote the current working directory. +If the optional destination is provided, Django will use that name as the +project directory, and create ``manage.py`` and the project package within it. +If the directory with the given name doesn't exist, it will be created. Use '.' +to denote the current working directory. + +.. versionchanged:: 6.0 + + Automatic creation of the destination directory was added. For example: -- cgit v1.3