|
@@ -16,7 +16,7 @@ How do I get started?
|
|
|
What are Django's prerequisites?
|
|
|
--------------------------------
|
|
|
|
|
|
-Django requires Python_, specifically any version of Python from 2.4
|
|
|
+Django requires Python_, specifically any version of Python from 2.5
|
|
|
through 2.7. No other Python libraries are required for basic Django
|
|
|
usage.
|
|
|
|
|
@@ -40,17 +40,15 @@ PostgreSQL fans, and MySQL_, `SQLite 3`_, and Oracle_ are also supported.
|
|
|
.. _`SQLite 3`: http://www.sqlite.org/
|
|
|
.. _Oracle: http://www.oracle.com/
|
|
|
|
|
|
-Do I lose anything by using Python 2.4 versus newer Python versions, such as Python 2.5 or 2.6?
|
|
|
+Do I lose anything by using Python 2.5 versus newer Python versions, such as Python 2.6 or 2.7?
|
|
|
-----------------------------------------------------------------------------------------------
|
|
|
|
|
|
Not in the core framework. Currently, Django itself officially supports any
|
|
|
-version of Python from 2.4 through 2.7, inclusive. However, newer versions of
|
|
|
+version of Python from 2.5 through 2.7, inclusive. However, newer versions of
|
|
|
Python are often faster, have more features, and are better supported. If you
|
|
|
use a newer version of Python you will also have access to some APIs that
|
|
|
-aren't available under older versions of Python. For example Django provides
|
|
|
-some `context managers`_ for various operations. If you use Python 2.4 you
|
|
|
-won't be able to use them, however other APIs which provide the same
|
|
|
-functionality are always made available.
|
|
|
+aren't available under older versions of Python. For example, since Python 2.6,
|
|
|
+you can use the advanced string formatting described in `PEP 3101`_.
|
|
|
|
|
|
Third-party applications for use with Django are, of course, free to set their
|
|
|
own version requirements.
|
|
@@ -61,11 +59,11 @@ versions as part of a migration which will end with Django running on Python 3
|
|
|
|
|
|
All else being equal, we recommend that you use the latest 2.x release
|
|
|
(currently Python 2.7). This will let you take advantage of the numerous
|
|
|
-improvements and optimizations to the Python language since version 2.4, and
|
|
|
+improvements and optimizations to the Python language since version 2.5, and
|
|
|
will help ease the process of dropping support for older Python versions on
|
|
|
the road to Python 3.
|
|
|
|
|
|
-.. _context managers: http://docs.python.org/reference/datamodel.html#context-managers
|
|
|
+.. _PEP 3101: http://www.python.org/dev/peps/pep-3101/
|
|
|
|
|
|
Can I use Django with Python 2.4?
|
|
|
---------------------------------
|