Changed paths in docs that referred to Python 2.

This commit is contained in:
Aymeric Augustin 2014-04-20 08:32:57 +02:00
parent 1b3a3fc1e4
commit bbe818b23c
3 changed files with 4 additions and 4 deletions

View File

@ -79,10 +79,10 @@ if using a UNIX-like system, or a semicolon (``;``) if using Windows. If any
part of a directory path contains a space character, the complete argument part of a directory path contains a space character, the complete argument
string to ``WSGIPythonPath`` must be quoted:: string to ``WSGIPythonPath`` must be quoted::
WSGIPythonPath /path/to/mysite.com:/path/to/your/venv/lib/python2.X/site-packages WSGIPythonPath /path/to/mysite.com:/path/to/your/venv/lib/python3.X/site-packages
Make sure you give the correct path to your virtualenv, and replace Make sure you give the correct path to your virtualenv, and replace
``python2.X`` with the correct Python version (e.g. ``python2.7``). ``python3.X`` with the correct Python version (e.g. ``python3.4``).
.. _virtualenv: http://www.virtualenv.org .. _virtualenv: http://www.virtualenv.org

View File

@ -172,7 +172,7 @@ Configurable attributes
.. attribute:: AppConfig.path .. attribute:: AppConfig.path
Filesystem path to the application directory, e.g. Filesystem path to the application directory, e.g.
``'/usr/lib/python2.7/dist-packages/django/contrib/admin'``. ``'/usr/lib/python3.4/dist-packages/django/contrib/admin'``.
In most cases, Django can automatically detect and set this, but you can In most cases, Django can automatically detect and set this, but you can
also provide an explicit override as a class attribute on your also provide an explicit override as a class attribute on your

View File

@ -80,7 +80,7 @@ each feature in that layer.
>>> from django.contrib.gis.gdal import DataSource >>> from django.contrib.gis.gdal import DataSource
>>> ds = DataSource(CITIES_PATH) >>> ds = DataSource(CITIES_PATH)
>>> ds.name # The exact filename may be different on your computer >>> ds.name # The exact filename may be different on your computer
'/usr/local/lib/python2.7/site-packages/django/contrib/gis/tests/data/cities/cities.shp' '/usr/local/lib/python3.4/site-packages/django/contrib/gis/tests/data/cities/cities.shp'
>>> ds.layer_count # This file only contains one layer >>> ds.layer_count # This file only contains one layer
1 1