summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/intro/tutorial01.txt15
-rw-r--r--docs/ref/django-admin.txt21
-rw-r--r--docs/releases/6.0.txt3
3 files changed, 22 insertions, 17 deletions
diff --git a/docs/intro/tutorial01.txt b/docs/intro/tutorial01.txt
index 0a766f9099..1318c5aa08 100644
--- a/docs/intro/tutorial01.txt
+++ b/docs/intro/tutorial01.txt
@@ -45,21 +45,16 @@ including database configuration, Django-specific options and
application-specific settings.
From the command line, ``cd`` into a directory where you'd like to store your
-code and create a new directory named ``djangotutorial``. (This directory name
-doesn't matter to Django; you can rename it to anything you like.)
-
-.. console::
-
- $ mkdir djangotutorial
-
-Then, run the following command to bootstrap a new Django project:
+code and run the following command to bootstrap a new Django project:
.. console::
$ django-admin startproject mysite djangotutorial
-This will create a project called ``mysite`` inside the ``djangotutorial``
-directory. If it didn't work, see :ref:`troubleshooting-django-admin`.
+This will create a directory ``djangotutorial`` with a project called
+``mysite`` inside. The directory name doesn't matter to Django; you can rename
+it to anything you like. If it didn't work, see
+:ref:`troubleshooting-django-admin`.
.. note::
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 <django/conf/app_template>` 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 ``<projectname>`` 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:
diff --git a/docs/releases/6.0.txt b/docs/releases/6.0.txt
index 4b9ad92e92..341da6fd68 100644
--- a/docs/releases/6.0.txt
+++ b/docs/releases/6.0.txt
@@ -170,7 +170,8 @@ Logging
Management Commands
~~~~~~~~~~~~~~~~~~~
-* ...
+* The :djadmin:`startproject` and :djadmin:`startapp` commands now create the
+ custom target directory if it doesn't exist.
Migrations
~~~~~~~~~~