1
0
mirror of https://github.com/django/django.git synced 2025-03-09 08:52:32 +00:00

[5.0.x] Fixed #35503 -- Removed distracting PHP reference in tutorial 1.

Backport of 6efbeb997cb0aa41555ac464a2b7579a37945b6a from main.
This commit is contained in:
Ismael 2024-06-08 14:41:41 +02:00 committed by Natalia
parent 0231bad10d
commit 25df397943

View File

@ -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