mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Used https for most *.python.org links
This commit is contained in:
parent
742fba9455
commit
0a4b04fc23
36 changed files with 52 additions and 57 deletions
|
@ -240,9 +240,9 @@ the Python Software Foundation. An advantage to using the installer is
|
|||
that OS X's Python will remain "pristine" for internal operating system
|
||||
use.
|
||||
|
||||
__ http://python.org/ftp/python/2.7.5/
|
||||
__ http://python.org/ftp/python/3.2.5/
|
||||
__ http://python.org/ftp/python/3.3.2/
|
||||
__ https://python.org/ftp/python/2.7.5/
|
||||
__ https://python.org/ftp/python/3.2.5/
|
||||
__ https://python.org/ftp/python/3.3.2/
|
||||
|
||||
.. note::
|
||||
|
||||
|
@ -404,7 +404,7 @@ Next, run the installer and keep the defaults -- for example, keep
|
|||
products sometimes install a copy there. *You should still install a
|
||||
fresh version of Python 2.7.*
|
||||
|
||||
__ http://python.org/download/
|
||||
__ https://python.org/download/
|
||||
|
||||
PostgreSQL
|
||||
^^^^^^^^^^
|
||||
|
|
|
@ -17,7 +17,7 @@ those packages have.
|
|||
``'django.contrib.redirects'``) to your :setting:`INSTALLED_APPS` setting
|
||||
and re-run ``manage.py migrate``.
|
||||
|
||||
.. _"batteries included" philosophy: http://docs.python.org/tutorial/stdlib.html#batteries-included
|
||||
.. _"batteries included" philosophy: https://docs.python.org/tutorial/stdlib.html#batteries-included
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
|
|
|
@ -223,11 +223,9 @@ running ``migrate``::
|
|||
MySQL DB API Drivers
|
||||
--------------------
|
||||
|
||||
The Python Database API is described in `PEP 249`_. MySQL has three prominent
|
||||
The Python Database API is described in :pep:`249`. MySQL has three prominent
|
||||
drivers that implement this API:
|
||||
|
||||
.. _PEP 249: http://www.python.org/dev/peps/pep-0249/
|
||||
|
||||
- `MySQLdb`_ is a native driver that has been developed and supported for over
|
||||
a decade by Andy Dustman.
|
||||
- `mysqlclient`_ is a fork of ``MySQLdb`` which notably supports Python 3 and
|
||||
|
|
|
@ -60,7 +60,7 @@ The ``File`` Class
|
|||
``'\n'``, the Windows convention ``'\r\n'``, and the old Macintosh
|
||||
convention ``'\r'``.
|
||||
|
||||
.. _universal newlines: http://www.python.org/dev/peps/pep-0278
|
||||
.. _universal newlines: https://www.python.org/dev/peps/pep-0278
|
||||
|
||||
.. method:: chunks([chunk_size=None])
|
||||
|
||||
|
|
|
@ -86,7 +86,7 @@ Here are some useful attributes of ``UploadedFile``:
|
|||
as ending a line: the Unix end-of-line convention ``'\n'``, the Windows
|
||||
convention ``'\r\n'``, and the old Macintosh convention ``'\r'``.
|
||||
|
||||
.. _universal newlines: http://www.python.org/dev/peps/pep-0278
|
||||
.. _universal newlines: https://www.python.org/dev/peps/pep-0278
|
||||
|
||||
.. versionchanged:: 1.8
|
||||
|
||||
|
|
|
@ -705,7 +705,7 @@ in Python`_).
|
|||
In previous versions instance's without primary key value were
|
||||
hashable.
|
||||
|
||||
.. _is forbidden in Python: http://docs.python.org/reference/datamodel.html#object.__hash__
|
||||
.. _is forbidden in Python: https://docs.python.org/reference/datamodel.html#object.__hash__
|
||||
|
||||
``get_absolute_url``
|
||||
--------------------
|
||||
|
|
|
@ -1001,7 +1001,7 @@ precedence and will be applied instead.
|
|||
|
||||
See also :setting:`DATETIME_INPUT_FORMATS` and :setting:`TIME_INPUT_FORMATS`.
|
||||
|
||||
.. _datetime: http://docs.python.org/library/datetime.html#strftime-strptime-behavior
|
||||
.. _datetime: https://docs.python.org/library/datetime.html#strftime-strptime-behavior
|
||||
|
||||
.. setting:: DATETIME_FORMAT
|
||||
|
||||
|
@ -1049,7 +1049,7 @@ precedence and will be applied instead.
|
|||
|
||||
See also :setting:`DATE_INPUT_FORMATS` and :setting:`TIME_INPUT_FORMATS`.
|
||||
|
||||
.. _datetime: http://docs.python.org/library/datetime.html#strftime-strptime-behavior
|
||||
.. _datetime: https://docs.python.org/library/datetime.html#strftime-strptime-behavior
|
||||
|
||||
.. setting:: DEBUG
|
||||
|
||||
|
@ -1812,7 +1812,7 @@ configuration process will be skipped.
|
|||
|
||||
Previously, the default value was ``'django.utils.log.dictConfig'``.
|
||||
|
||||
.. _dictConfig: http://docs.python.org/library/logging.config.html#configuration-dictionary-schema
|
||||
.. _dictConfig: https://docs.python.org/library/logging.config.html#configuration-dictionary-schema
|
||||
|
||||
.. setting:: MANAGERS
|
||||
|
||||
|
@ -2445,7 +2445,7 @@ precedence and will be applied instead.
|
|||
|
||||
See also :setting:`DATE_INPUT_FORMATS` and :setting:`DATETIME_INPUT_FORMATS`.
|
||||
|
||||
.. _datetime: http://docs.python.org/library/datetime.html#strftime-strptime-behavior
|
||||
.. _datetime: https://docs.python.org/library/datetime.html#strftime-strptime-behavior
|
||||
|
||||
.. setting:: TIME_ZONE
|
||||
|
||||
|
|
|
@ -2071,7 +2071,7 @@ Formats the variable according to the argument, a string formatting specifier.
|
|||
This specifier uses Python string formatting syntax, with the exception that
|
||||
the leading "%" is dropped.
|
||||
|
||||
See http://docs.python.org/library/stdtypes.html#string-formatting-operations
|
||||
See https://docs.python.org/library/stdtypes.html#string-formatting-operations
|
||||
for documentation of Python string formatting
|
||||
|
||||
For example::
|
||||
|
|
|
@ -677,7 +677,7 @@ escaping HTML.
|
|||
If ``value`` is ``"<B>Joel</B> <button>is</button> a <span>slug</span>"``
|
||||
the return value will be ``"<B>Joel</B> <button>is</button> a slug"``.
|
||||
|
||||
.. _str.format: http://docs.python.org/library/stdtypes.html#str.format
|
||||
.. _str.format: https://docs.python.org/library/stdtypes.html#str.format
|
||||
.. _bleach: https://pypi.python.org/pypi/bleach
|
||||
|
||||
``django.utils.http``
|
||||
|
@ -739,7 +739,7 @@ escaping HTML.
|
|||
Converts a positive integer to a base 36 string. On Python 2 ``i`` must be
|
||||
smaller than `sys.maxint`_.
|
||||
|
||||
.. _sys.maxint: http://docs.python.org/2/library/sys.html#sys.maxint
|
||||
.. _sys.maxint: https://docs.python.org/2/library/sys.html#sys.maxint
|
||||
|
||||
.. function:: urlsafe_base64_encode(s)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue