Kaydet (Commit) 5cf8f459 authored tarafından saschalalala's avatar saschalalala Kaydeden (comit) Tim Graham

Simplified command to display path to Django source files.

Python 3 always returns an absolute path.
üst 3ed9c7bd
......@@ -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
......
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment