summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmael <38179854+ismaelzsilva@users.noreply.github.com>2024-06-08 14:41:41 +0200
committerNatalia <124304+nessita@users.noreply.github.com>2024-06-08 09:43:30 -0300
commit337297891fe2d731982feff5bef2cf8cb0cf182e (patch)
treeb6f371c5667b860ebf3b4e180f942ccdcb18ca6f
parentde7fc2e42ee719b24a6d6eca2344b74507bb8ffe (diff)
[5.1.x] Fixed #35503 -- Removed distracting PHP reference in tutorial 1.
Backport of 6efbeb997cb0aa41555ac464a2b7579a37945b6a from main.
-rw-r--r--docs/intro/tutorial01.txt12
1 files changed, 0 insertions, 12 deletions
diff --git a/docs/intro/tutorial01.txt b/docs/intro/tutorial01.txt
index cb296129c0..2d57620a96 100644
--- a/docs/intro/tutorial01.txt
+++ b/docs/intro/tutorial01.txt
@@ -64,18 +64,6 @@ work, see :ref:`troubleshooting-django-admin`.
``django`` (which will conflict with Django itself) or ``test`` (which
conflicts with a built-in Python package).
-.. admonition:: Where should this code live?
-
- If your background is in plain old PHP (with no use of modern frameworks),
- you're probably used to putting code under the web server's document root
- (in a place such as ``/var/www``). With Django, you don't do that. It's
- not a good idea to put any of this Python code within your web server's
- document root, because it risks the possibility that people may be able
- to view your code over the web. That's not good for security.
-
- Put your code in some directory **outside** of the document root, such as
- :file:`/home/mycode`.
-
Let's look at what :djadmin:`startproject` created:
.. code-block:: text