Skip to content

Commit

Permalink
Fixed #35503 -- Removed distracting PHP reference in tutorial 1.
Browse files Browse the repository at this point in the history
  • Loading branch information
ismaelzsilva authored Jun 8, 2024
1 parent adae619 commit 6efbeb9
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions docs/intro/tutorial01.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6efbeb9

Please sign in to comment.