diff --git a/docs/faq/install.txt b/docs/faq/install.txt index 28a89ccc1f..810247a1bc 100644 --- a/docs/faq/install.txt +++ b/docs/faq/install.txt @@ -35,7 +35,7 @@ also need a database engine. PostgreSQL_ is recommended, because we're PostgreSQL fans, and MySQL_, `SQLite 3`_, and Oracle_ are also supported. .. _Python: http://www.python.org/ -.. _WSGI: http://www.python.org/peps/pep-0333.html +.. _WSGI: http://www.python.org/dev/peps/pep-0333/ .. _server arrangements wiki page: http://code.djangoproject.com/wiki/ServerArrangements .. _PostgreSQL: http://www.postgresql.org/ .. _MySQL: http://www.mysql.com/ diff --git a/docs/howto/auth-remote-user.txt b/docs/howto/auth-remote-user.txt index 05532da0b0..b7987e14a7 100644 --- a/docs/howto/auth-remote-user.txt +++ b/docs/howto/auth-remote-user.txt @@ -12,7 +12,7 @@ Windows Authentication or Apache and `mod_authnz_ldap`_, `CAS`_, `Cosign`_, `WebAuth`_, `mod_auth_sspi`_, etc. .. _mod_authnz_ldap: http://httpd.apache.org/docs/2.2/mod/mod_authnz_ldap.html -.. _CAS: http://www.ja-sig.org/products/cas/ +.. _CAS: http://www.jasig.org/cas .. _Cosign: http://weblogin.org .. _WebAuth: http://www.stanford.edu/services/webauth/ .. _mod_auth_sspi: http://sourceforge.net/projects/mod-auth-sspi diff --git a/docs/howto/deployment/modpython.txt b/docs/howto/deployment/modpython.txt index 50dadf9854..143a6d5ae3 100644 --- a/docs/howto/deployment/modpython.txt +++ b/docs/howto/deployment/modpython.txt @@ -375,9 +375,9 @@ set of imports until it stops crashing, so as to find the specific module that causes the problem. Drop down further into modules and look into their imports, as necessary. -.. _Expat Causing Apache Crash: http://www.dscpl.com.au/articles/modpython-006.html +.. _Expat Causing Apache Crash: http://www.dscpl.com.au/wiki/ModPython/Articles/ExpatCausingApacheCrash .. _mod_python FAQ entry: http://modpython.org/FAQ/faqw.py?req=show&file=faq02.013.htp -.. _Getting mod_python Working: http://www.dscpl.com.au/articles/modpython-001.html +.. _Getting mod_python Working: http://www.dscpl.com.au/wiki/ModPython/Articles/GettingModPythonWorking If you get a UnicodeEncodeError =============================== diff --git a/docs/howto/outputting-pdf.txt b/docs/howto/outputting-pdf.txt index 3cbab555e4..94acab8311 100644 --- a/docs/howto/outputting-pdf.txt +++ b/docs/howto/outputting-pdf.txt @@ -16,13 +16,13 @@ For example, Django was used at kusports.com_ to generate customized, printer-friendly NCAA tournament brackets, as PDF files, for people participating in a March Madness contest. -.. _ReportLab: http://www.reportlab.org/rl_toolkit.html +.. _ReportLab: http://www.reportlab.org/oss/rl-toolkit/ .. _kusports.com: http://www.kusports.com/ Install ReportLab ================= -Download and install the ReportLab library from http://www.reportlab.org/downloads.html. +Download and install the ReportLab library from http://www.reportlab.org/oss/rl-toolkit/download/. The `user guide`_ (not coincidentally, a PDF file) explains how to install it. Test your installation by importing it in the Python interactive interpreter:: @@ -138,17 +138,15 @@ Further resources * PDFlib_ is another PDF-generation library that has Python bindings. To use it with Django, just use the same concepts explained in this article. - * `Pisa HTML2PDF`_ is yet another PDF-generation library. Pisa ships with + * `Pisa XHTML2PDF`_ is yet another PDF-generation library. Pisa ships with an example of how to integrate Pisa with Django. * HTMLdoc_ is a command-line script that can convert HTML to PDF. It doesn't have a Python interface, but you can escape out to the shell using ``system`` or ``popen`` and retrieve the output in Python. - * `forge_fdf in Python`_ is a library that fills in PDF forms. .. _PDFlib: http://www.pdflib.org/ -.. _`Pisa HTML2PDF`: http://www.htmltopdf.org/ +.. _`Pisa XHTML2PDF`: http://www.xhtml2pdf.com/ .. _HTMLdoc: http://www.htmldoc.org/ -.. _forge_fdf in Python: http://www.accesspdf.com/article.php/20050421092951834 Other formats ============= diff --git a/docs/internals/contributing.txt b/docs/internals/contributing.txt index 82c5da5f59..43909e3828 100644 --- a/docs/internals/contributing.txt +++ b/docs/internals/contributing.txt @@ -849,7 +849,8 @@ dependencies: * Textile_ * Docutils_ * setuptools_ - * memcached_, plus the either the python-memcached_ or cmemcached_ Python binding + * memcached_, plus the either the python-memcached_ or cmemcached_ + Python binding If you want to test the memcached cache backend, you will also need to define a :setting:`CACHE_BACKEND` setting that points at your memcached instance. @@ -864,7 +865,7 @@ associated tests will be skipped. .. _setuptools: http://pypi.python.org/pypi/setuptools/ .. _memcached: http://www.danga.com/memcached/ .. _python-memcached: http://pypi.python.org/pypi/python-memcached/ -.. _cmemcached: http://pypi.python.org/pypi/cmemcache +.. _cmemcached: http://gijsbert.org/cmemcache/index.html To run a subset of the unit tests, append the names of the test modules to the ``runtests.py`` command line. See the list of directories in @@ -959,9 +960,9 @@ for feature branches: If you want a feature branch in SVN, you'll need to ask in `django-developers`_ for a mentor. -.. _git: http://git.or.cz/ -.. _mercurial: http://www.selenic.com/mercurial/ -.. _bazaar: http://bazaar-vcs.org/ +.. _git: http://git-scm.com/ +.. _mercurial: http://mercurial.selenic.com/ +.. _bazaar: http://bazaar.canonical.com/ .. _django branches: http://code.djangoproject.com/wiki/DjangoBranches Branch rules @@ -1093,7 +1094,7 @@ If you're using Django 0.95 or earlier and installed it using file. Then copy the branch's version of the ``django`` directory into ``site-packages``. -.. _path file: http://docs.python.org/lib/module-site.html +.. _path file: http://docs.python.org/library/site.html Deciding on features ==================== @@ -1159,6 +1160,6 @@ requests for commit access are potential flame-war starters, and will be ignored .. _django-users: http://groups.google.com/group/django-users .. _`#django`: irc://irc.freenode.net/django .. _list of tickets with patches: http://code.djangoproject.com/query?status=new&status=assigned&status=reopened&has_patch=1&order=priority -.. _pep8.py: http://svn.browsershots.org/trunk/devtools/pep8/pep8.py +.. _pep8.py: http://pypi.python.org/pypi/pep8/ .. _i18n branch: http://code.djangoproject.com/browser/django/branches/i18n .. _`tags/releases`: http://code.djangoproject.com/browser/django/tags/releases diff --git a/docs/internals/documentation.txt b/docs/internals/documentation.txt index f33af32597..300728df98 100644 --- a/docs/internals/documentation.txt +++ b/docs/internals/documentation.txt @@ -10,7 +10,7 @@ based on docutils__. The basic idea is that lightly-formatted plain-text documentation is transformed into HTML, PDF, and any other output format. __ http://sphinx.pocoo.org/ -__ http://docutils.sf.net/ +__ http://docutils.sourceforge.net/ To actually build the documentation locally, you'll currently need to install Sphinx -- ``easy_install Sphinx`` should do the trick. diff --git a/docs/intro/tutorial01.txt b/docs/intro/tutorial01.txt index eacb3abdfa..c2864b8f38 100644 --- a/docs/intro/tutorial01.txt +++ b/docs/intro/tutorial01.txt @@ -102,7 +102,7 @@ These files are: contents" of your Django-powered site. You can read more about URLs in :ref:`topics-http-urls`. -.. _more about packages: http://docs.python.org/tut/node8.html#packages +.. _more about packages: http://docs.python.org/tutorial/modules.html#packages The development server ---------------------- @@ -367,7 +367,7 @@ Finally, note a relationship is defined, using to a single Poll. Django supports all the common database relationships: many-to-ones, many-to-manys and one-to-ones. -.. _`Python path`: http://docs.python.org/tut/node8.html#SECTION008110000000000000000 +.. _`Python path`: http://docs.python.org/tutorial/modules.html#the-module-search-path Activating models ================= diff --git a/docs/ref/contrib/flatpages.txt b/docs/ref/contrib/flatpages.txt index 875a1c05e5..f934919412 100644 --- a/docs/ref/contrib/flatpages.txt +++ b/docs/ref/contrib/flatpages.txt @@ -26,7 +26,6 @@ content in a custom template. Here are some examples of flatpages on Django-powered sites: - * http://www.chicagocrime.org/about/ * http://www.everyblock.com/about/ * http://www.lawrence.com/about/contact/ diff --git a/docs/ref/contrib/index.txt b/docs/ref/contrib/index.txt index 7b07f920ae..2d15c25dfe 100644 --- a/docs/ref/contrib/index.txt +++ b/docs/ref/contrib/index.txt @@ -19,7 +19,7 @@ those packages have. ``'django.contrib.admin'``) to your ``INSTALLED_APPS`` setting and re-run ``manage.py syncdb``. -.. _"batteries included" philosophy: http://docs.python.org/tut/node12.html#batteries-included +.. _"batteries included" philosophy: http://docs.python.org/tutorial/stdlib.html#batteries-included .. toctree:: :maxdepth: 1 diff --git a/docs/ref/contrib/localflavor.txt b/docs/ref/contrib/localflavor.txt index d0e9b7f8e7..660b7c623b 100644 --- a/docs/ref/contrib/localflavor.txt +++ b/docs/ref/contrib/localflavor.txt @@ -168,7 +168,7 @@ Austria (``at``) .. class:: at.forms.ATStateSelect - A ``Select`` widget that uses a list of Austrian states as its choices. + A ``Select`` widget that uses a list of Austrian states as its choices. .. class:: at.forms.ATSocialSecurityNumberField @@ -518,7 +518,7 @@ Romania (``ro``) .. class:: ro.forms.ROIBANField - A form field that validates its input as a Romanian International Bank + A form field that validates its input as a Romanian International Bank Account Number (IBAN). The valid format is ROXX-XXXX-XXXX-XXXX-XXXX-XXXX, with or without hyphens. @@ -634,7 +634,7 @@ Sweden (``se``) A \+ indicates that the person is older than 100 years, which will be taken into consideration when the date is validated. - + The checksum will be calculated and checked. The birth date is checked to be a valid date. @@ -650,7 +650,7 @@ Sweden (``se``) Valid codes consist of five digits (XXXXX). The number can optionally be formatted with a space after the third digit (XXX XX). - The cleaned value will never contain the space. + The cleaned value will never contain the space. Switzerland (``ch``) ==================== @@ -683,7 +683,7 @@ United Kingdom (``uk``) A form field that validates input as a UK postcode. The regular expression used is sourced from the schema for British Standard BS7666 - address types at http://www.govtalk.gov.uk/gdsc/schemas/bs7666-v2-0.xsd. + address types at http://www.cabinetoffice.gov.uk/media/291293/bs7666-v2-0.xml. .. class:: uk.forms.UKCountySelect diff --git a/docs/ref/contrib/syndication.txt b/docs/ref/contrib/syndication.txt index cb9c22b8bd..c27666303c 100644 --- a/docs/ref/contrib/syndication.txt +++ b/docs/ref/contrib/syndication.txt @@ -940,7 +940,7 @@ attributes. Thus, you can subclass the appropriate feed generator class (``Atom1Feed`` or ``Rss201rev2Feed``) and extend these callbacks. They are: .. _georss: http://georss.org/ -.. _itunes podcast format: http://www.apple.com/itunes/store/podcaststechspecs.html +.. _itunes podcast format: http://www.apple.com/itunes/podcasts/specs.html ``SyndicationFeed.root_attributes(self, )`` Return a ``dict`` of attributes to add to the root feed element diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt index cd8cdc7a01..3c1106a217 100644 --- a/docs/ref/models/fields.txt +++ b/docs/ref/models/fields.txt @@ -555,7 +555,7 @@ By default, :class:`FileField` instances are created as ``varchar(100)`` columns in your database. As with other fields, you can change the maximum length using the :attr:`~CharField.max_length` argument. -.. _`strftime formatting`: http://docs.python.org/lib/module-time.html#l2h-1941 +.. _`strftime formatting`: http://docs.python.org/library/time.html#time.strftime ``FilePathField`` ----------------- diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt index 071e8b6449..e261e3bbe2 100644 --- a/docs/ref/models/querysets.txt +++ b/docs/ref/models/querysets.txt @@ -94,7 +94,7 @@ the query construction and is not part of the public API. However, it is safe (and fully supported) to pickle and unpickle the attribute's contents as described here. -.. _pickle: http://docs.python.org/lib/module-pickle.html +.. _pickle: http://docs.python.org/library/pickle.html .. _queryset-api: diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt index 16dc276b99..8cbc9ccc8f 100644 --- a/docs/ref/settings.txt +++ b/docs/ref/settings.txt @@ -341,7 +341,7 @@ Supported for the PostgreSQL_ (``postgresql``, ``postgresql_psycopg2``) and MySQL_ (``mysql``) backends. .. _PostgreSQL: http://www.postgresql.org/docs/8.2/static/multibyte.html -.. _MySQL: http://www.mysql.org/doc/refman/5.0/en/charset-database.html +.. _MySQL: http://dev.mysql.com/doc/refman/5.0/en/charset-database.html .. setting:: TEST_COLLATION @@ -353,10 +353,9 @@ Default: ``None`` The collation order to use when creating the test database. This value is passed directly to the backend, so its format is backend-specific. -Only supported for the ``mysql`` backend (see `section 10.3.2`_ of the MySQL -manual for details). +Only supported for the ``mysql`` backend (see the `MySQL manual`_ for details). -.. _section 10.3.2: http://www.mysql.org/doc/refman/5.0/en/charset-database.html +.. _MySQL manual: MySQL_ .. setting:: TEST_NAME @@ -734,7 +733,7 @@ system's standard umask. get totally incorrect behavior. -.. _documentation for os.chmod: http://docs.python.org/lib/os-file-dir.html +.. _documentation for os.chmod: http://docs.python.org/library/os.html#os.chmod .. setting:: FIRST_DAY_OF_WEEK diff --git a/docs/ref/unicode.txt b/docs/ref/unicode.txt index 2f23354914..a6149119bf 100644 --- a/docs/ref/unicode.txt +++ b/docs/ref/unicode.txt @@ -21,8 +21,8 @@ data. Normally, this means giving it an encoding of UTF-8 or UTF-16. If you use a more restrictive encoding -- for example, latin1 (iso8859-1) -- you won't be able to store certain characters in the database, and information will be lost. - * MySQL users, refer to the `MySQL manual`_ (section 10.3.2 for MySQL 5.1) for - details on how to set or alter the database character set encoding. + * MySQL users, refer to the `MySQL manual`_ (section 9.1.3.2 for MySQL 5.1) + for details on how to set or alter the database character set encoding. * PostgreSQL users, refer to the `PostgreSQL manual`_ (section 21.2.2 in PostgreSQL 8) for details on creating databases with the correct encoding. @@ -30,7 +30,7 @@ able to store certain characters in the database, and information will be lost. * SQLite users, there is nothing you need to do. SQLite always uses UTF-8 for internal encoding. -.. _MySQL manual: http://www.mysql.org/doc/refman/5.1/en/charset-database.html +.. _MySQL manual: http://dev.mysql.com/doc/refman/5.1/en/charset-database.html .. _PostgreSQL manual: http://www.postgresql.org/docs/8.2/static/multibyte.html#AEN24104 All of Django's database backends automatically convert Unicode strings into diff --git a/docs/releases/0.96.txt b/docs/releases/0.96.txt index 7a8d64f5d7..8d795acebd 100644 --- a/docs/releases/0.96.txt +++ b/docs/releases/0.96.txt @@ -227,8 +227,8 @@ start of your tests. This makes testing with real data much easier. See `the testing documentation`_ for the full details. -.. _doctest: http://docs.python.org/lib/module-doctest.html -.. _unittest: http://docs.python.org/lib/module-unittest.html +.. _doctest: http://docs.python.org/library/doctest.html +.. _unittest: http://docs.python.org/library/unittest.html .. _the testing documentation: http://www.djangoproject.com/documentation/0.96/testing/ .. _serialization formats: http://www.djangoproject.com/documentation/0.96/serialization/ diff --git a/docs/topics/db/queries.txt b/docs/topics/db/queries.txt index 1f7e2a1a3c..a6ba3ebca7 100644 --- a/docs/topics/db/queries.txt +++ b/docs/topics/db/queries.txt @@ -327,7 +327,7 @@ translates (roughly) into the following SQL:: arguments whose names and values are evaluated at runtime. For more information, see `Keyword Arguments`_ in the official Python tutorial. - .. _`Keyword Arguments`: http://docs.python.org/tut/node6.html#SECTION006720000000000000000 + .. _`Keyword Arguments`: http://docs.python.org/tutorial/controlflow.html#keyword-arguments If you pass an invalid keyword argument, a lookup function will raise ``TypeError``. diff --git a/docs/topics/db/sql.txt b/docs/topics/db/sql.txt index 987fcb091f..075b9b27a3 100644 --- a/docs/topics/db/sql.txt +++ b/docs/topics/db/sql.txt @@ -251,5 +251,4 @@ necessary. (Also note that Django expects the ``"%s"`` placeholder, *not* the ``"?"`` placeholder, which is used by the SQLite Python bindings. This is for the sake of consistency and sanity.) -.. _Python DB-API: http://www.python.org/peps/pep-0249.html - +.. _Python DB-API: http://www.python.org/dev/peps/pep-0249/ diff --git a/docs/topics/files.txt b/docs/topics/files.txt index 8e17db20fb..45aca5488a 100644 --- a/docs/topics/files.txt +++ b/docs/topics/files.txt @@ -55,7 +55,7 @@ Internally, Django uses a ``django.core.files.File`` any time it needs to represent a file. This object is a thin wrapper around Python's `built-in file object`_ with some Django-specific additions. -.. _built-in file object: http://docs.python.org/lib/bltin-file-objects.html +.. _built-in file object: http://docs.python.org/library/stdtypes.html#bltin-file-objects Most of the time you'll simply use a ``File`` that Django's given you (i.e. a file attached to a model as above, or perhaps an uploaded file). diff --git a/docs/topics/http/file-uploads.txt b/docs/topics/http/file-uploads.txt index 428b390a2f..b3d520b3ee 100644 --- a/docs/topics/http/file-uploads.txt +++ b/docs/topics/http/file-uploads.txt @@ -30,7 +30,7 @@ is a dictionary containing a key for each ``FileField`` (or ``ImageField``, or other ``FileField`` subclass) in the form. So the data from the above form would be accessible as ``request.FILES['file']``. -Note that ``request.FILES`` will only contain data if the request method was +Note that ``request.FILES`` will only contain data if the request method was ``POST`` and the ``