Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Removed mentions of Python 2.3 support from the docs -- Django 1.2 dr…

…ops support for Python 2.3 -- and added a quick FAQ about that dropping of support.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@11640 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 7098664940567c772a45ad98f9ee936063a1102e 1 parent 8be1bb2
Jacob Kaplan-Moss authored October 23, 2009
15  docs/faq/install.txt
@@ -18,7 +18,7 @@ How do I get started?
18 18
 What are Django's prerequisites?
19 19
 --------------------------------
20 20
 
21  
-Django requires Python_, specifically any version of Python from 2.3
  21
+Django requires Python_, specifically any version of Python from 2.4
22 22
 through 2.6. No other Python libraries are required for basic Django
23 23
 usage.
24 24
 
@@ -42,11 +42,11 @@ PostgreSQL fans, and MySQL_, `SQLite 3`_, and Oracle_ are also supported.
42 42
 .. _`SQLite 3`: http://www.sqlite.org/
43 43
 .. _Oracle: http://www.oracle.com/
44 44
 
45  
-Do I lose anything by using Python 2.3 versus newer Python versions, such as Python 2.5?
  45
+Do I lose anything by using Python 2.4 versus newer Python versions, such as Python 2.5 or 2.6?
46 46
 ----------------------------------------------------------------------------------------
47 47
 
48 48
 Not in the core framework. Currently, Django itself officially
49  
-supports any version of Python from 2.3 through 2.6,
  49
+supports any version of Python from 2.4 through 2.6,
50 50
 inclusive. However, some add-on components may require a more recent
51 51
 Python version; the ``django.contrib.gis`` component, for example,
52 52
 requires at least Python 2.4, and third-party applications for use
@@ -59,10 +59,17 @@ which will end with Django running on Python 3.0 (see next question
59 59
 for details). So if you're just starting out with Python, it's
60 60
 recommended that you use the latest 2.x release (currently, Python
61 61
 2.6). This will let you take advantage of the numerous improvements
62  
-and optimizations to the Python language since version 2.3, and will
  62
+and optimizations to the Python language since version 2.4, and will
63 63
 help ease the process of dropping support for older Python versions on
64 64
 the road to Python 3.0.
65 65
 
  66
+Can I use Django with Python 2.3?
  67
+---------------------------------
  68
+
  69
+Django 1.1 (and earlier) supported Python 2.3. Django 1.2 and newer does not.
  70
+We highly recommend you upgrade Python if at all possible, but Django 1.1 will
  71
+continue to work on Python 2.3.
  72
+
66 73
 Can I use Django with Python 3.0?
67 74
 ---------------------------------
68 75
 
2  docs/intro/install.txt
@@ -12,7 +12,7 @@ Install Python
12 12
 --------------
13 13
 
14 14
 Being a Python Web framework, Django requires Python. It works with any Python
15  
-version from 2.3 to 2.6 (due to backwards
  15
+version from 2.4 to 2.6 (due to backwards
16 16
 incompatibilities in Python 3.0, Django does not currently work with
17 17
 Python 3.0; see :ref:`the Django FAQ <faq-install>` for more
18 18
 information on supported Python versions and the 3.0 transition), but we recommend installing Python 2.5 or later. If you do so, you won't need to set up a database just yet: Python 2.5 or later includes a lightweight database called SQLite_.
10  docs/topics/auth.txt
@@ -1046,15 +1046,7 @@ checks to make sure the user is logged in and has the permission
1046 1046
     optional ``login_url`` argument, which lets you specify the URL for your
1047 1047
     login page (:setting:`settings.LOGIN_URL <LOGIN_URL>` by default).
1048 1048
 
1049  
-    Example in Python 2.3 syntax::
1050  
-
1051  
-        from django.contrib.auth.decorators import user_passes_test
1052  
-
1053  
-        def my_view(request):
1054  
-            # ...
1055  
-        my_view = user_passes_test(lambda u: u.has_perm('polls.can_vote'), login_url='/login/')(my_view)
1056  
-
1057  
-    Example in Python 2.4 syntax::
  1049
+    For example::
1058 1050
 
1059 1051
         from django.contrib.auth.decorators import user_passes_test
1060 1052
 
6  docs/topics/cache.txt
@@ -616,12 +616,6 @@ like so::
616 616
 
617 617
     from django.views.decorators.vary import vary_on_headers
618 618
 
619  
-    # Python 2.3 syntax.
620  
-    def my_view(request):
621  
-        # ...
622  
-    my_view = vary_on_headers(my_view, 'User-Agent')
623  
-
624  
-    # Python 2.4+ decorator syntax.
625 619
     @vary_on_headers('User-Agent')
626 620
     def my_view(request):
627 621
         # ...
7  docs/topics/conditional-view-processing.txt
@@ -95,13 +95,6 @@ for your front page view::
95 95
     def front_page(request, blog_id):
96 96
         ...
97 97
 
98  
-Of course, if you're using Python 2.3 or prefer not to use the decorator
99  
-syntax, you can write the same code as follows, there is no difference::
100  
-
101  
-    def front_page(request, blog_id):
102  
-        ...
103  
-    front_page = condition(last_modified_func=latest_entry)(front_page)
104  
-
105 98
 Shortcuts for only computing one value
106 99
 ======================================
107 100
 
4  docs/topics/install.txt
@@ -11,7 +11,7 @@ Install Python
11 11
 
12 12
 Being a Python Web framework, Django requires Python.
13 13
 
14  
-It works with any Python version from 2.3 to 2.6 (due to backwards
  14
+It works with any Python version from 2.4 to 2.6 (due to backwards
15 15
 incompatibilities in Python 3.0, Django does not currently work with
16 16
 Python 3.0; see :ref:`the Django FAQ <faq-install>` for more
17 17
 information on supported Python versions and the 3.0 transition).
@@ -93,7 +93,7 @@ database bindings are installed.
93 93
   will also want to read the database-specific notes for the :ref:`MySQL
94 94
   backend <ref-databases>`.
95 95
 
96  
-* If you're using SQLite and either Python 2.3 or Python 2.4, you'll need
  96
+* If you're using SQLite and either Python 2.4 or Python 2.4, you'll need
97 97
   pysqlite_. Use version 2.0.3 or higher. Python 2.5 ships with an SQLite
98 98
   wrapper in the standard library, so you don't need to install anything extra
99 99
   in that case. Please read the SQLite backend :ref:`notes<sqlite-notes>`.

0 notes on commit 7098664

Please sign in to comment.
Something went wrong with that request. Please try again.