diff options
| author | Ramiro Morales <cramm0@gmail.com> | 2011-06-09 20:01:28 +0000 |
|---|---|---|
| committer | Ramiro Morales <cramm0@gmail.com> | 2011-06-09 20:01:28 +0000 |
| commit | dff31de20aac85e4f4834c2466762cbf23fc0a7b (patch) | |
| tree | 6d7d6756f53eb599b81827bf097f24cfb1ed7b54 /docs/faq/install.txt | |
| parent | da0c7cd7778ee99a31587276faee30e94a8255ae (diff) | |
Fixed #16155 -- Removed Python 2.4 compatibility constructs from code and mentions from docs. Thanks Aymeric Augustin for the report and patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16349 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/faq/install.txt')
| -rw-r--r-- | docs/faq/install.txt | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/docs/faq/install.txt b/docs/faq/install.txt index f500e77a88..f1e865a966 100644 --- a/docs/faq/install.txt +++ b/docs/faq/install.txt @@ -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? --------------------------------- |
