Kaydet (Commit) bbe818b2 authored tarafından Aymeric Augustin's avatar Aymeric Augustin

Changed paths in docs that referred to Python 2.

üst 1b3a3fc1
...@@ -79,10 +79,10 @@ if using a UNIX-like system, or a semicolon (``;``) if using Windows. If any ...@@ -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
......
...@@ -172,7 +172,7 @@ Configurable attributes ...@@ -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
......
...@@ -80,7 +80,7 @@ each feature in that layer. ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment