summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2012-07-01 06:55:46 -0400
committerTim Graham <timograham@gmail.com>2012-07-01 06:56:20 -0400
commit32bd77d392e331e823792abcd9d31045f681776d (patch)
treeff3e6d819163000ba52eddb310f6939965aa4fab
parentfea5e0b80f6fcb4c520a113a7b46b20ecd678413 (diff)
[1.4.X] Fixed #18493 - Added instructions to locate the Django source files to the t
Thanks Claude Paroz for the draft patch. Backport of c68f4c514c from master
-rw-r--r--docs/intro/tutorial02.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/intro/tutorial02.txt b/docs/intro/tutorial02.txt
index 4e73af5114..fe7b74d82a 100644
--- a/docs/intro/tutorial02.txt
+++ b/docs/intro/tutorial02.txt
@@ -445,6 +445,19 @@ above, then copy ``django/contrib/admin/templates/admin/base_site.html`` to
``/home/my_username/mytemplates/admin/base_site.html``. Don't forget that
``admin`` subdirectory.
+.. admonition:: Where are the Django source files?
+
+ If you have difficulty finding where the Django source files are located
+ on your system, run the following command:
+
+ .. code-block:: bash
+
+ python -c "
+ import sys
+ sys.path = sys.path[1:]
+ import django
+ print(django.__path__)"
+
Then, just edit the file and replace the generic Django text with your own
site's name as you see fit.