Edited docs/install.txt changes from [6178]

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6190 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2007-09-14 15:33:42 +00:00
parent 7ed3196536
commit f7e1047b08

View File

@ -129,14 +129,14 @@ Installing an official release
2. Untar the downloaded file (e.g. ``tar xzvf Django-NNN.tar.gz``, 2. Untar the downloaded file (e.g. ``tar xzvf Django-NNN.tar.gz``,
where ``NNN`` is the version number of the latest release). where ``NNN`` is the version number of the latest release).
If you are a Windows user, you can download the command-line tool If you're using Windows, you can download the command-line tool
bsdtar_ to do this, or you can use a GUI-based tool such as 7-zip_. bsdtar_ to do this, or you can use a GUI-based tool such as 7-zip_.
3. Change into the directory created in step 2 (e.g. ``cd Django-NNN``). 3. Change into the directory created in step 2 (e.g. ``cd Django-NNN``).
4. If you are using Linux, Mac OSX or some other flavour of Unix, enter 4. If you're using Linux, Mac OS X or some other flavor of Unix, enter
the command``sudo python setup.py install`` at the shell prompt. the command ``sudo python setup.py install`` at the shell prompt.
If you are using Windows, start up a command shell with administrator If you're using Windows, start up a command shell with administrator
privileges and run the command ``setup.py install``. privileges and run the command ``setup.py install``.
These commands will install Django in your Python installation's These commands will install Django in your Python installation's
@ -160,10 +160,9 @@ latest bug fixes and improvements, follow these instructions:
svn co http://code.djangoproject.com/svn/django/trunk/ django-trunk svn co http://code.djangoproject.com/svn/django/trunk/ django-trunk
3. Next, you need to make sure that the Python interpreter can load Django's 3. Next, make sure that the Python interpreter can load Django's code. There
code. There are various ways of accomplishing this. One of the most are various ways of accomplishing this. One of the most convenient, on
convenient, on Linux, Mac OSX or other Unix-like systems, is to use a Linux, Mac OSX or other Unix-like systems, is to use a symbolic link::
symbolic link::
ln -s `pwd`/django-trunk/django SITE-PACKAGES-DIR/django ln -s `pwd`/django-trunk/django SITE-PACKAGES-DIR/django
@ -179,10 +178,15 @@ latest bug fixes and improvements, follow these instructions:
.. admonition:: What about Apache and mod_python? .. admonition:: What about Apache and mod_python?
If you are using Apache and mod_python rather than Django's If you take the approach of setting ``PYTHONPATH``, you'll need to
development server, then instead of defining the ``PYTHONPATH`` remember to do the same thing in your Apache configuration once you
shell environment variable, you will need to specify the deploy your production site. Do this by setting ``PythonPath`` in your
``PythonPath`` directive in your Apache configuration file. Apache configuration file.
More information about deployment is available, of course, in our
`How to use Django with mod_python`_ documentation.
.. _How to use Django with mod_python: ../modpython/
4. Copy the file ``django-trunk/django/bin/django-admin.py`` to somewhere on 4. Copy the file ``django-trunk/django/bin/django-admin.py`` to somewhere on
your system path, such as ``/usr/local/bin`` (Unix) or ``C:\Python24\Scripts`` your system path, such as ``/usr/local/bin`` (Unix) or ``C:\Python24\Scripts``