Browse Source

Fixed #9487 -- Corrected several links into the Python docs that were broken by the recent Python docs refactor.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9312 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Karen Tracey 16 years ago
parent
commit
d4f4ab8535

+ 1 - 1
docs/howto/custom-template-tags.txt

@@ -344,7 +344,7 @@ else. In our case, let's say the tag should be used like this:
 
     <p>The time is {% current_time "%Y-%m-%d %I:%M %p" %}.</p>
 
-.. _`strftime syntax`: http://www.python.org/doc/current/lib/module-time.html#l2h-1941
+.. _`strftime syntax`: http://docs.python.org/library/time.html#time.strftime
 
 The parser for this function should grab the parameter and create a ``Node``
 object::

+ 1 - 1
docs/howto/outputting-csv.txt

@@ -8,7 +8,7 @@ This document explains how to output CSV (Comma Separated Values) dynamically
 using Django views. To do this, you can either use the `Python CSV library`_ or
 the Django template system.
 
-.. _Python CSV library: http://www.python.org/doc/current/lib/module-csv.html
+.. _Python CSV library: http://docs.python.org/library/csv.html
 
 Using the Python CSV library
 ============================

+ 1 - 1
docs/howto/outputting-pdf.txt

@@ -131,7 +131,7 @@ Here's the above "Hello World" example rewritten to use ``cStringIO``::
         response.write(pdf)
         return response
 
-.. _cStringIO: http://www.python.org/doc/current/lib/module-cStringIO.html
+.. _cStringIO: http://docs.python.org/library/stringio.html#module-cStringIO
 
 Further resources
 =================

+ 1 - 1
docs/intro/tutorial03.txt

@@ -128,7 +128,7 @@ Finally, a performance note: these regular expressions are compiled the first
 time the URLconf module is loaded. They're super fast.
 
 .. _Wikipedia's entry: http://en.wikipedia.org/wiki/Regular_expression
-.. _Python documentation: http://www.python.org/doc/current/lib/module-re.html
+.. _Python documentation: http://docs.python.org/library/re.html
 
 Write your first view
 =====================

+ 1 - 1
docs/ref/contrib/syndication.txt

@@ -928,7 +928,7 @@ For example, to create an Atom 1.0 feed and print it to standard output::
     </feed>
 
 .. _django/utils/feedgenerator.py: http://code.djangoproject.com/browser/django/trunk/django/utils/feedgenerator.py
-.. _Python datetime object: http://www.python.org/doc/current/lib/module-datetime.html
+.. _Python datetime object: http://docs.python.org/library/datetime.html#datetime-objects
 
 Custom feed generators
 ----------------------

+ 1 - 1
docs/ref/generic-views.txt

@@ -406,7 +406,7 @@ In addition to ``extra_context``, the template's context will be:
       is ``'object'`` by default. If ``template_object_name`` is ``'foo'``,
       this variable's name will be ``foo_list``.
 
-.. _strftime docs: http://www.python.org/doc/current/lib/module-time.html#l2h-1941
+.. _strftime docs: http://docs.python.org/library/time.html#time.strftime
 
 ``django.views.generic.date_based.archive_week``
 ------------------------------------------------

+ 1 - 1
docs/ref/request-response.txt

@@ -499,7 +499,7 @@ Methods
           calendars.lawrence.com. Otherwise, a cookie will only be readable by
           the domain that set it.
 
-    .. _`cookie Morsel`: http://www.python.org/doc/current/lib/morsel-objects.html
+    .. _`cookie Morsel`: http://docs.python.org/library/cookie.html#Cookie.Morsel
 
 .. method:: HttpResponse.delete_cookie(key, path='/', domain=None)
 

+ 1 - 1
docs/ref/templates/builtins.txt

@@ -1255,7 +1255,7 @@ pprint
 
 A wrapper around `pprint.pprint`__ -- for debugging, really.
 
-__ http://www.python.org/doc/2.5/lib/module-pprint.html
+__ http://docs.python.org/library/pprint.html
 
 .. templatefilter:: random
 

+ 2 - 2
docs/topics/email.txt

@@ -13,7 +13,7 @@ extra quick.
 
 The code lives in a single module: ``django.core.mail``.
 
-.. _smtplib library: http://www.python.org/doc/current/lib/module-smtplib.html
+.. _smtplib library: http://docs.python.org/library/smtplib.html
 
 Quick example
 =============
@@ -63,7 +63,7 @@ are required.
       SMTP server. If this isn't provided, Django will use the value of the
       ``EMAIL_HOST_PASSWORD`` setting.
 
-.. _smtplib docs: http://www.python.org/doc/current/lib/module-smtplib.html
+.. _smtplib docs: http://docs.python.org/library/smtplib.html
 
 send_mass_mail()
 ================

+ 1 - 1
docs/topics/http/sessions.txt

@@ -466,7 +466,7 @@ Technical details
     * Django only sends a cookie if it needs to. If you don't set any session
       data, it won't send a session cookie.
 
-.. _`the pickle module`: http://www.python.org/doc/current/lib/module-pickle.html
+.. _`the pickle module`: http://docs.python.org/library/pickle.html
 
 Session IDs in URLs
 ===================