Simplified command to display path to Django source files.

Python 3 always returns an absolute path.
This commit is contained in:
saschalalala 2015-03-06 10:57:06 +01:00 committed by Tim Graham
parent 3ed9c7bdfe
commit 5cf8f4596c
2 changed files with 2 additions and 6 deletions

View File

@ -530,11 +530,7 @@ template directory in the source code of Django itself
.. code-block:: console .. code-block:: console
$ python -c " $ python -c "import django; print(django.__path__)"
import sys
sys.path = sys.path[1:]
import django
print(django.__path__)"
Then, just edit the file and replace Then, just edit the file and replace
``{{ site_header|default:_('Django administration') }}`` (including the curly ``{{ site_header|default:_('Django administration') }}`` (including the curly

View File

@ -142,7 +142,7 @@ following at your shell prompt (not the interactive Python prompt):
.. code-block:: console .. 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: .. _install-django-code: