Code

Ticket #6739: tweak-install.diff

File tweak-install.diff, 2.4 KB (added by adamv, 4 years ago)

Attempt at tweaking the install doc a bit.

Line 
1diff --git a/docs/intro/install.txt b/docs/intro/install.txt
2index edac4cf..7764739 100644
3--- a/docs/intro/install.txt
4+++ b/docs/intro/install.txt
5@@ -13,7 +13,10 @@ Being a Python Web framework, Django requires Python. It works with any Python
6 version from 2.4 to 2.7 (due to backwards
7 incompatibilities in Python 3.0, Django does not currently work with
8 Python 3.0; see :doc:`the Django FAQ </faq/install>` for more
9-information on supported Python versions and the 3.0 transition), but we recommend installing Python 2.5 or later. If you do so, you won't need to set up a database just yet: Python 2.5 or later includes a lightweight database called SQLite_.
10+information on supported Python versions and the 3.0 transition), but we
11+recommend installing Python 2.5 or later. If you do so, you won't need to set
12+up a database just yet: Python 2.5 or later includes a lightweight database
13+called SQLite_.
14 
15 .. _sqlite: http://sqlite.org/
16 
17@@ -27,7 +30,8 @@ probably already have it installed.
18 
19 .. _jython: http://www.jython.org/
20 
21-You can verify that Python's installed by typing ``python`` from your shell; you should see something like::
22+You can verify that Python is installed by typing ``python`` from your shell;
23+you should see something like::
24 
25     Python 2.5.1 (r251:54863, Jan 17 2008, 19:35:17)
26     [GCC 4.0.1 (Apple Inc. build 5465)] on darwin
27@@ -74,7 +78,30 @@ You've got three easy options to install Django:
28     documentation marked **new in development version**. That phrase flags
29     features that are only available in development versions of Django, and
30     they likely won't work with an official release.
31-   
32+
33+Because Django is "just a Python module", it can be installed just like any
34+other Python module, by being placed on Python's path. See
35+`Modifying Python's Search Path`_ for more information.
36+
37+.. _Modifying Python's Search Path: http://docs.python.org/install/index.html#modifying-python-s-search-path
38+
39+Verifying
40+---------
41+
42+To verify that Django can be seen by Python, type ``python`` from your shell::
43+
44+    Python 2.5.1 (r251:54863, Jan 17 2008, 19:35:17)
45+    [GCC 4.0.1 (Apple Inc. build 5465)] on darwin
46+    Type "help", "copyright", "credits" or "license" for more information.
47+    >>>
48+
49+At the Python prompt, try to import Django::
50+
51+    >>>import django
52+    >>>print(django.VERSION)
53+    ...(1, 3, 0, 'alpha', 1)
54+
55+
56 That's it!
57 ----------
58