Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[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 c68f4c5 from master
  • Loading branch information...
commit 32bd77d392e331e823792abcd9d31045f681776d 1 parent fea5e0b
Tim Graham authored July 01, 2012

Showing 1 changed file with 13 additions and 0 deletions. Show diff stats Hide diff stats

  1. 13  docs/intro/tutorial02.txt
13  docs/intro/tutorial02.txt
@@ -445,6 +445,19 @@ above, then copy ``django/contrib/admin/templates/admin/base_site.html`` to
445 445
 ``/home/my_username/mytemplates/admin/base_site.html``. Don't forget that
446 446
 ``admin`` subdirectory.
447 447
 
  448
+.. admonition:: Where are the Django source files?
  449
+
  450
+    If you have difficulty finding where the Django source files are located
  451
+    on your system, run the following command:
  452
+
  453
+    .. code-block:: bash
  454
+
  455
+        python -c "
  456
+        import sys
  457
+        sys.path = sys.path[1:]
  458
+        import django
  459
+        print(django.__path__)"
  460
+
448 461
 Then, just edit the file and replace the generic Django text with your own
449 462
 site's name as you see fit.
450 463
 

0 notes on commit 32bd77d

Please sign in to comment.
Something went wrong with that request. Please try again.