From 5cf8f4596cd17f7a6096f7d5df92dde038cb12bf Mon Sep 17 00:00:00 2001 From: saschalalala Date: Fri, 6 Mar 2015 10:57:06 +0100 Subject: [PATCH] Simplified command to display path to Django source files. Python 3 always returns an absolute path. --- docs/intro/tutorial02.txt | 6 +----- docs/topics/install.txt | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/docs/intro/tutorial02.txt b/docs/intro/tutorial02.txt index 22c37d7b7e2..4337d02d688 100644 --- a/docs/intro/tutorial02.txt +++ b/docs/intro/tutorial02.txt @@ -530,11 +530,7 @@ template directory in the source code of Django itself .. code-block:: console - $ python -c " - import sys - sys.path = sys.path[1:] - import django - print(django.__path__)" + $ python -c "import django; print(django.__path__)" Then, just edit the file and replace ``{{ site_header|default:_('Django administration') }}`` (including the curly diff --git a/docs/topics/install.txt b/docs/topics/install.txt index ab26e8e003e..44226985767 100644 --- a/docs/topics/install.txt +++ b/docs/topics/install.txt @@ -142,7 +142,7 @@ following at your shell prompt (not the interactive Python prompt): .. code-block:: console - $ python -c "import sys; sys.path = sys.path[1:]; import django; print(django.__path__)" + $ python -c "import django; print(django.__path__)" .. _install-django-code: