mirror of
https://github.com/django/django.git
synced 2025-11-02 04:48:33 +00:00
Fixed #25778 -- Updated docs links to use https when available.
This commit is contained in:
parent
51a3721372
commit
7aabd62380
66 changed files with 156 additions and 156 deletions
|
|
@ -205,7 +205,7 @@ RedirectView
|
|||
urlpatterns = [
|
||||
url(r'^counter/(?P<pk>[0-9]+)/$', ArticleCounterRedirectView.as_view(), name='article-counter'),
|
||||
url(r'^details/(?P<pk>[0-9]+)/$', ArticleDetail.as_view(), name='article-detail'),
|
||||
url(r'^go-to-django/$', RedirectView.as_view(url='http://djangoproject.com'), name='go-to-django'),
|
||||
url(r'^go-to-django/$', RedirectView.as_view(url='https://djangoproject.com'), name='go-to-django'),
|
||||
]
|
||||
|
||||
**Attributes**
|
||||
|
|
|
|||
|
|
@ -1256,8 +1256,8 @@ subclass::
|
|||
|
||||
class PersonAdmin(admin.ModelAdmin):
|
||||
def view_on_site(self, obj):
|
||||
return 'http://example.com' + reverse('person-detail',
|
||||
kwargs={'slug': obj.slug})
|
||||
return 'https://example.com' + reverse('person-detail',
|
||||
kwargs={'slug': obj.slug})
|
||||
|
||||
Custom template options
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
@ -1929,7 +1929,7 @@ files for the forms and/or formsets. If :setting:`DEBUG` is ``True`` it will
|
|||
return the uncompressed versions of the various JavaScript files, including
|
||||
``jquery.js``; if not, it will return the 'minified' versions.
|
||||
|
||||
.. _jQuery: http://jquery.com
|
||||
.. _jQuery: https://jquery.com
|
||||
|
||||
.. _admin-custom-validation:
|
||||
|
||||
|
|
|
|||
|
|
@ -64,6 +64,6 @@ GeoDjango's admin site
|
|||
.. class:: OSMGeoAdmin
|
||||
|
||||
A subclass of :class:`GeoModelAdmin` that uses a spherical mercator projection
|
||||
with `OpenStreetMap <http://www.openstreetmap.org/>`_ street data tiles.
|
||||
with `OpenStreetMap <https://www.openstreetmap.org/>`_ street data tiles.
|
||||
See the :ref:`OSMGeoAdmin introduction <osmgeoadmin-intro>`
|
||||
in the tutorial for a usage example.
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ MySQL Spatial Limitations
|
|||
MySQL's spatial extensions only support bounding box operations
|
||||
(what MySQL calls minimum bounding rectangles, or MBR). Specifically,
|
||||
`MySQL does not conform to the OGC standard
|
||||
<http://dev.mysql.com/doc/refman/5.6/en/spatial-relation-functions.html>`_:
|
||||
<https://dev.mysql.com/doc/refman/5.6/en/spatial-relation-functions.html>`_:
|
||||
|
||||
Currently, MySQL does not implement these functions
|
||||
[``Contains``, ``Crosses``, ``Disjoint``, ``Intersects``, ``Overlaps``,
|
||||
|
|
@ -357,7 +357,7 @@ Aggregate PostGIS Oracle SpatiaLite
|
|||
.. [#fnewkb] *See* `PostGIS EWKB, EWKT and Canonical Forms <http://postgis.net/docs/manual-2.1/using_postgis_dbmanagement.html#EWKB_EWKT>`_, PostGIS documentation at Ch. 4.1.2.
|
||||
.. [#fngeojson] *See* Howard Butler, Martin Daly, Allan Doyle, Tim Schaub, & Christopher Schmidt, `The GeoJSON Format Specification <http://geojson.org/geojson-spec.html>`_, Revision 1.0 (June 16, 2008).
|
||||
.. [#fndistsphere15] *See* `PostGIS documentation <http://postgis.net/docs/manual-2.1/ST_Distance_Sphere.html>`_ on ``ST_distance_sphere``.
|
||||
.. [#fnmysqlidx] *See* `Creating Spatial Indexes <http://dev.mysql.com/doc/refman/5.6/en/creating-spatial-indexes.html>`_
|
||||
.. [#fnmysqlidx] *See* `Creating Spatial Indexes <https://dev.mysql.com/doc/refman/5.6/en/creating-spatial-indexes.html>`_
|
||||
in the MySQL Reference Manual:
|
||||
|
||||
For MyISAM tables, ``SPATIAL INDEX`` creates an R-tree index. For storage
|
||||
|
|
|
|||
|
|
@ -22,10 +22,10 @@ datasets in binary format (the CSV files will not work!). These datasets may be
|
|||
you set :setting:`GEOIP_PATH` with in your settings. See the example and
|
||||
reference below for more details.
|
||||
|
||||
__ http://www.maxmind.com/app/c
|
||||
__ http://www.maxmind.com/app/country
|
||||
__ http://www.maxmind.com/app/city
|
||||
__ http://www.maxmind.com/download/geoip/database/
|
||||
__ https://www.maxmind.com/app/c
|
||||
__ https://www.maxmind.com/app/country
|
||||
__ https://www.maxmind.com/app/city
|
||||
__ https://www.maxmind.com/download/geoip/database/
|
||||
|
||||
Example
|
||||
=======
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ in a directory corresponding to the :setting:`GEOIP_PATH` setting.
|
|||
Additionally, it is recommended to install the `libmaxminddb C library`__, so
|
||||
that ``geoip2`` can leverage the C library's faster speed.
|
||||
|
||||
__ http://geoip2.readthedocs.org/
|
||||
__ https://geoip2.readthedocs.org/
|
||||
__ https://pypi.python.org/pypi/geoip2
|
||||
__ http://dev.maxmind.com/geoip/geoip2/geolite2/
|
||||
__ https://github.com/maxmind/libmaxminddb
|
||||
|
|
|
|||
|
|
@ -1239,7 +1239,7 @@ Keyword Argument Description
|
|||
details.
|
||||
===================== =====================================================
|
||||
|
||||
__ http://docs.oracle.com/html/B14255_01/sdo_intro.htm#sthref150
|
||||
__ https://docs.oracle.com/html/B14255_01/sdo_intro.htm#sthref150
|
||||
|
||||
Example::
|
||||
|
||||
|
|
@ -1332,6 +1332,6 @@ Example::
|
|||
|
||||
.. rubric:: Footnotes
|
||||
.. [#fnde9im] *See* `OpenGIS Simple Feature Specification For SQL <http://www.opengis.org/docs/99-049.pdf>`_, at Ch. 2.1.13.2, p. 2-13 (The Dimensionally Extended Nine-Intersection Model).
|
||||
.. [#fnsdorelate] *See* `SDO_RELATE documentation <http://docs.oracle.com/cd/B19306_01/appdev.102/b14255/sdo_operat.htm#sthref845>`_, from Ch. 11 of the Oracle Spatial User's Guide and Manual.
|
||||
.. [#fnsdorelate] *See* `SDO_RELATE documentation <https://docs.oracle.com/cd/B19306_01/appdev.102/b14255/sdo_operat.htm#sthref845>`_, from Ch. 11 of the Oracle Spatial User's Guide and Manual.
|
||||
.. [#fncovers] For an explanation of this routine, read `Quirks of the "Contains" Spatial Predicate <http://lin-ear-th-inking.blogspot.com/2007/06/subtleties-of-ogc-covers-spatial.html>`_ by Martin Davis (a PostGIS developer).
|
||||
.. [#fncontainsproperly] Refer to the PostGIS ``ST_ContainsProperly`` `documentation <http://postgis.net/docs/manual-1.5/ST_ContainsProperly.html>`_ for more details.
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ implements the OpenGIS `Simple Features for SQL`__ spatial predicate functions
|
|||
and spatial operators. GEOS, now an OSGeo project, was initially developed and
|
||||
maintained by `Refractions Research`__ of Victoria, Canada.
|
||||
|
||||
__ http://trac.osgeo.org/geos/
|
||||
__ https://trac.osgeo.org/geos/
|
||||
__ http://sourceforge.net/projects/jts-topo-suite/
|
||||
__ http://www.opengeospatial.org/standards/sfs
|
||||
__ http://www.refractions.net/
|
||||
|
|
@ -779,7 +779,7 @@ In order to obtain a prepared geometry, just access the
|
|||
may be used with other ``GEOSGeometry`` objects. An operation with a prepared
|
||||
geometry can be orders of magnitude faster -- the more complex the geometry
|
||||
that is prepared, the larger the speedup in the operation. For more information,
|
||||
please consult the `GEOS wiki page on prepared geometries <http://trac.osgeo.org/geos/wiki/PreparedGeometry>`_.
|
||||
please consult the `GEOS wiki page on prepared geometries <https://trac.osgeo.org/geos/wiki/PreparedGeometry>`_.
|
||||
|
||||
For example::
|
||||
|
||||
|
|
|
|||
|
|
@ -216,8 +216,8 @@ Configure, make and install::
|
|||
If you have any problems, please see the troubleshooting section below for
|
||||
suggestions and solutions.
|
||||
|
||||
__ http://trac.osgeo.org/gdal/
|
||||
__ http://trac.osgeo.org/gdal/wiki/GdalOgrInPython
|
||||
__ https://trac.osgeo.org/gdal/
|
||||
__ https://trac.osgeo.org/gdal/wiki/GdalOgrInPython
|
||||
|
||||
.. _gdaltrouble:
|
||||
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ SQLite GEOS, GDAL, PROJ.4, SpatiaLite 3.6.+ Requires
|
|||
See also `this comparison matrix`__ on the OSGeo Wiki for
|
||||
PostgreSQL/PostGIS/GEOS/GDAL possible combinations.
|
||||
|
||||
__ http://trac.osgeo.org/postgis/wiki/UsersWikiPostgreSQLPostGIS
|
||||
__ https://trac.osgeo.org/postgis/wiki/UsersWikiPostgreSQLPostGIS
|
||||
|
||||
Installation
|
||||
============
|
||||
|
|
@ -361,7 +361,7 @@ Summary::
|
|||
|
||||
export DYLD_FALLBACK_LIBRARY_PATH=/opt/local/lib:/opt/local/lib/postgresql93
|
||||
|
||||
__ http://www.macports.org/
|
||||
__ https://www.macports.org/
|
||||
|
||||
.. _windows:
|
||||
|
||||
|
|
@ -468,7 +468,7 @@ may be unchecked safely. After clicking next, the packages will be
|
|||
automatically downloaded and installed, after which you may exit the
|
||||
installer.
|
||||
|
||||
.. _OSGeo4W installer: http://trac.osgeo.org/osgeo4w/
|
||||
.. _OSGeo4W installer: https://trac.osgeo.org/osgeo4w/
|
||||
|
||||
Modify Windows environment
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ just skip this section.
|
|||
To install from sources, download the latest amalgamation source archive from
|
||||
the `SQLite download page`__, and extract::
|
||||
|
||||
$ wget http://sqlite.org/sqlite-amalgamation-3.6.23.1.tar.gz
|
||||
$ wget https://sqlite.org/sqlite-amalgamation-3.6.23.1.tar.gz
|
||||
$ tar xzf sqlite-amalgamation-3.6.23.1.tar.gz
|
||||
$ cd sqlite-3.6.23.1
|
||||
|
||||
|
|
@ -51,8 +51,8 @@ needs to be customized so that SQLite knows to build the R*Tree module::
|
|||
$ sudo make install
|
||||
$ cd ..
|
||||
|
||||
__ http://www.sqlite.org/rtree.html
|
||||
__ http://www.sqlite.org/download.html
|
||||
__ https://www.sqlite.org/rtree.html
|
||||
__ https://www.sqlite.org/download.html
|
||||
|
||||
.. _spatialitebuild:
|
||||
|
||||
|
|
|
|||
|
|
@ -156,7 +156,7 @@ __ https://en.wikipedia.org/wiki/Geodesy
|
|||
__ https://en.wikipedia.org/wiki/Great_circle
|
||||
__ http://www.spatialreference.org/ref/epsg/2796/
|
||||
__ http://spatialreference.org/
|
||||
__ http://web.archive.org/web/20080302095452/http://welcome.warnercnr.colostate.edu/class_info/nr502/lg3/datums_coordinates/spcs.html
|
||||
__ https://web.archive.org/web/20080302095452/http://welcome.warnercnr.colostate.edu/class_info/nr502/lg3/datums_coordinates/spcs.html
|
||||
|
||||
``spatial_index``
|
||||
-----------------
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ basic apps`_ project. [#]_
|
|||
|
||||
.. _OGC: http://www.opengeospatial.org/
|
||||
.. _world borders: http://thematicmapping.org/downloads/world_borders.php
|
||||
.. _GeoDjango basic apps: http://code.google.com/p/geodjango-basic-apps/
|
||||
.. _GeoDjango basic apps: https://code.google.com/p/geodjango-basic-apps/
|
||||
|
||||
Setting Up
|
||||
==========
|
||||
|
|
@ -735,7 +735,7 @@ may be edited by clicking on a polygon and dragging the vertexes to the desired
|
|||
position.
|
||||
|
||||
.. _OpenLayers: http://openlayers.org/
|
||||
.. _Open Street Map: http://www.openstreetmap.org/
|
||||
.. _Open Street Map: https://www.openstreetmap.org/
|
||||
.. _Vector Map Level 0: http://earth-info.nga.mil/publications/vmap0.html
|
||||
.. _OSGeo: http://www.osgeo.org
|
||||
|
||||
|
|
@ -771,6 +771,6 @@ option class in your ``admin.py`` file::
|
|||
.. [#] GeoDjango basic apps was written by Dane Springmeyer, Josh Livni, and
|
||||
Christopher Schmidt.
|
||||
.. [#] This point is the `University of Houston Law Center
|
||||
<http://www.law.uh.edu/>`_.
|
||||
<https://www.law.uh.edu/>`_.
|
||||
.. [#] Open Geospatial Consortium, Inc., `OpenGIS Simple Feature Specification
|
||||
For SQL <http://www.opengeospatial.org/standards/sfs>`_.
|
||||
|
|
|
|||
|
|
@ -160,7 +160,7 @@ Sitemap class reference
|
|||
|
||||
* Good: :file:`'/foo/bar/'`
|
||||
* Bad: :file:`'example.com/foo/bar/'`
|
||||
* Bad: :file:`'http://example.com/foo/bar/'`
|
||||
* Bad: :file:`'https://example.com/foo/bar/'`
|
||||
|
||||
If :attr:`~Sitemap.location` isn't provided, the framework will call
|
||||
the ``get_absolute_url()`` method on each object as returned by
|
||||
|
|
@ -451,7 +451,7 @@ generate a Google News compatible sitemap:
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<urlset
|
||||
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
|
||||
xmlns:news="http://www.google.com/schemas/sitemap-news/0.9">
|
||||
xmlns:news="https://www.google.com/schemas/sitemap-news/0.9">
|
||||
{% spaceless %}
|
||||
{% for url in urlset %}
|
||||
<url>
|
||||
|
|
@ -494,7 +494,7 @@ that: :func:`django.contrib.sitemaps.ping_google()`.
|
|||
The :func:`ping_google` command only works if you have registered your
|
||||
site with `Google Webmaster Tools`_.
|
||||
|
||||
.. _`Google Webmaster Tools`: http://www.google.com/webmasters/tools/
|
||||
.. _`Google Webmaster Tools`: https://www.google.com/webmasters/tools/
|
||||
|
||||
One useful way to call :func:`ping_google` is from a model's ``save()``
|
||||
method::
|
||||
|
|
|
|||
|
|
@ -252,8 +252,8 @@ To do this, you can use the sites framework. A simple example::
|
|||
'/mymodel/objects/3/'
|
||||
>>> Site.objects.get_current().domain
|
||||
'example.com'
|
||||
>>> 'http://%s%s' % (Site.objects.get_current().domain, obj.get_absolute_url())
|
||||
'http://example.com/mymodel/objects/3/'
|
||||
>>> 'https://%s%s' % (Site.objects.get_current().domain, obj.get_absolute_url())
|
||||
'https://example.com/mymodel/objects/3/'
|
||||
|
||||
.. _enabling-the-sites-framework:
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ you want to generate feeds outside of a Web context, or in some other
|
|||
lower-level way.
|
||||
|
||||
.. _RSS: http://www.whatisrss.com/
|
||||
.. _Atom: http://tools.ietf.org/html/rfc4287
|
||||
.. _Atom: https://tools.ietf.org/html/rfc4287
|
||||
|
||||
The high-level framework
|
||||
========================
|
||||
|
|
@ -320,7 +320,7 @@ URLs
|
|||
|
||||
The ``link`` method/attribute can return either an absolute path (e.g.
|
||||
:file:`"/blog/"`) or a URL with the fully-qualified domain and protocol (e.g.
|
||||
``"http://www.example.com/blog/"``). If ``link`` doesn't return the domain,
|
||||
``"https://www.example.com/blog/"``). If ``link`` doesn't return the domain,
|
||||
the syndication framework will insert the domain of the current site, according
|
||||
to your :setting:`SITE_ID setting <SITE_ID>`.
|
||||
|
||||
|
|
@ -541,7 +541,7 @@ This example illustrates all possible attributes and methods for a
|
|||
Returns the feed's author's URL as a normal Python string.
|
||||
"""
|
||||
|
||||
author_link = 'http://www.example.com/' # Hard-coded author URL.
|
||||
author_link = 'https://www.example.com/' # Hard-coded author URL.
|
||||
|
||||
# CATEGORIES -- One of the following three is optional. The framework
|
||||
# looks for them in this order. In each case, the method/attribute
|
||||
|
|
@ -746,7 +746,7 @@ This example illustrates all possible attributes and methods for a
|
|||
Returns the author URL for every item in the feed.
|
||||
"""
|
||||
|
||||
item_author_link = 'http://www.example.com/' # Hard-coded author URL.
|
||||
item_author_link = 'https://www.example.com/' # Hard-coded author URL.
|
||||
|
||||
# ITEM ENCLOSURES -- One of the following three is optional. The
|
||||
# framework looks for them in this order. If one of them is defined,
|
||||
|
|
@ -1004,13 +1004,13 @@ For example, to create an Atom 1.0 feed and print it to standard output::
|
|||
>>> from datetime import datetime
|
||||
>>> f = feedgenerator.Atom1Feed(
|
||||
... title="My Weblog",
|
||||
... link="http://www.example.com/",
|
||||
... link="https://www.example.com/",
|
||||
... description="In which I write about what I ate today.",
|
||||
... language="en",
|
||||
... author_name="Myself",
|
||||
... feed_url="http://example.com/atom.xml")
|
||||
... feed_url="https://example.com/atom.xml")
|
||||
>>> f.add_item(title="Hot dog today",
|
||||
... link="http://www.example.com/entries/1/",
|
||||
... link="https://www.example.com/entries/1/",
|
||||
... pubdate=datetime.now(),
|
||||
... description="<p>Today I had a Vienna Beef hot dog. It was pink, plump and perfect.</p>")
|
||||
>>> print(f.writeString('UTF-8'))
|
||||
|
|
@ -1040,7 +1040,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/podcasts/specs.html
|
||||
.. _itunes podcast format: https://www.apple.com/itunes/podcasts/specs.html
|
||||
|
||||
``SyndicationFeed.root_attributes(self, )``
|
||||
Return a ``dict`` of attributes to add to the root feed element
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ The first defense against CSRF attacks is to ensure that GET requests (and other
|
|||
such as POST, PUT and DELETE, can then be protected by following the steps
|
||||
below.
|
||||
|
||||
.. _Cross Site Request Forgeries: http://www.squarefree.com/securitytips/web-developers.html#CSRF
|
||||
.. _Cross Site Request Forgeries: https://www.squarefree.com/securitytips/web-developers.html#CSRF
|
||||
|
||||
.. _using-csrf:
|
||||
|
||||
|
|
@ -142,7 +142,7 @@ The above code could be simplified by using the `JavaScript Cookie library
|
|||
|
||||
Finally, you'll have to actually set the header on your AJAX request, while
|
||||
protecting the CSRF token from being sent to other domains using
|
||||
`settings.crossDomain <http://api.jquery.com/jQuery.ajax>`_ in jQuery 1.5.1 and
|
||||
`settings.crossDomain <https://api.jquery.com/jQuery.ajax>`_ in jQuery 1.5.1 and
|
||||
newer:
|
||||
|
||||
.. code-block:: javascript
|
||||
|
|
|
|||
|
|
@ -225,9 +225,9 @@ running ``migrate``::
|
|||
1005, "Can't create table '\\db_name\\.#sql-4a8_ab' (errno: 150)"
|
||||
)
|
||||
|
||||
.. _storage engines: http://dev.mysql.com/doc/refman/5.6/en/storage-engines.html
|
||||
.. _MyISAM: http://dev.mysql.com/doc/refman/5.6/en/myisam-storage-engine.html
|
||||
.. _InnoDB: http://dev.mysql.com/doc/refman/5.6/en/innodb-storage-engine.html
|
||||
.. _storage engines: https://dev.mysql.com/doc/refman/5.6/en/storage-engines.html
|
||||
.. _MyISAM: https://dev.mysql.com/doc/refman/5.6/en/myisam-storage-engine.html
|
||||
.. _InnoDB: https://dev.mysql.com/doc/refman/5.6/en/innodb-storage-engine.html
|
||||
|
||||
.. [#] Unless this was changed by the packager of your MySQL package. We've
|
||||
had reports that the Windows Community Server installer sets up InnoDB as
|
||||
|
|
@ -252,7 +252,7 @@ drivers that implement this API:
|
|||
|
||||
.. _MySQLdb: https://pypi.python.org/pypi/MySQL-python/1.2.4
|
||||
.. _mysqlclient: https://pypi.python.org/pypi/mysqlclient
|
||||
.. _MySQL Connector/Python: http://dev.mysql.com/downloads/connector/python
|
||||
.. _MySQL Connector/Python: https://dev.mysql.com/downloads/connector/python
|
||||
|
||||
All these drivers are thread-safe and provide connection pooling. ``MySQLdb``
|
||||
is the only one not supporting Python 3 currently.
|
||||
|
|
@ -261,7 +261,7 @@ In addition to a DB API driver, Django needs an adapter to access the database
|
|||
drivers from its ORM. Django provides an adapter for MySQLdb/mysqlclient while
|
||||
MySQL Connector/Python includes `its own`_.
|
||||
|
||||
.. _its own: http://dev.mysql.com/doc/connector-python/en/connector-python-django-backend.html
|
||||
.. _its own: https://dev.mysql.com/doc/connector-python/en/connector-python-django-backend.html
|
||||
|
||||
MySQLdb
|
||||
~~~~~~~
|
||||
|
|
@ -295,7 +295,7 @@ MySQL Connector/Python is available from the `download page`_.
|
|||
The Django adapter is available in versions 1.1.X and later. It may not
|
||||
support the most recent releases of Django.
|
||||
|
||||
.. _download page: http://dev.mysql.com/downloads/connector/python/
|
||||
.. _download page: https://dev.mysql.com/downloads/connector/python/
|
||||
|
||||
.. _mysql-time-zone-definitions:
|
||||
|
||||
|
|
@ -306,7 +306,7 @@ If you plan on using Django's :doc:`timezone support </topics/i18n/timezones>`,
|
|||
use `mysql_tzinfo_to_sql`_ to load time zone tables into the MySQL database.
|
||||
This needs to be done just once for your MySQL server, not per database.
|
||||
|
||||
.. _mysql_tzinfo_to_sql: http://dev.mysql.com/doc/refman/5.6/en/mysql-tzinfo-to-sql.html
|
||||
.. _mysql_tzinfo_to_sql: https://dev.mysql.com/doc/refman/5.6/en/mysql-tzinfo-to-sql.html
|
||||
|
||||
Creating your database
|
||||
----------------------
|
||||
|
|
@ -317,7 +317,7 @@ You can `create your database`_ using the command-line tools and this SQL::
|
|||
|
||||
This ensures all tables and columns will use UTF-8 by default.
|
||||
|
||||
.. _create your database: http://dev.mysql.com/doc/refman/5.6/en/create-database.html
|
||||
.. _create your database: https://dev.mysql.com/doc/refman/5.6/en/create-database.html
|
||||
|
||||
.. _mysql-collation:
|
||||
|
||||
|
|
@ -331,7 +331,7 @@ the MySQL documentation. In all cases, you set the collation by directly
|
|||
manipulating the database tables; Django doesn't provide a way to set this on
|
||||
the model definition.
|
||||
|
||||
.. _documented thoroughly: http://dev.mysql.com/doc/refman/5.6/en/charset.html
|
||||
.. _documented thoroughly: https://dev.mysql.com/doc/refman/5.6/en/charset.html
|
||||
|
||||
By default, with a UTF-8 database, MySQL will use the
|
||||
``utf8_general_ci`` collation. This results in all string equality
|
||||
|
|
@ -387,7 +387,7 @@ you should use ``utf8_general_ci`` because it is faster. If this is not acceptab
|
|||
(for example, if you require German dictionary order), use ``utf8_unicode_ci``
|
||||
because it is more accurate.
|
||||
|
||||
.. _MySQL Unicode Character Sets: http://dev.mysql.com/doc/refman/5.7/en/charset-unicode-sets.html
|
||||
.. _MySQL Unicode Character Sets: https://dev.mysql.com/doc/refman/5.7/en/charset-unicode-sets.html
|
||||
|
||||
.. warning::
|
||||
|
||||
|
|
@ -436,7 +436,7 @@ Several other MySQLdb connection options may be useful, such as ``ssl``,
|
|||
``init_command``, and ``sql_mode``. Consult the `MySQLdb documentation`_ for
|
||||
more details.
|
||||
|
||||
.. _MySQL option file: http://dev.mysql.com/doc/refman/5.6/en/option-files.html
|
||||
.. _MySQL option file: https://dev.mysql.com/doc/refman/5.6/en/option-files.html
|
||||
.. _MySQLdb documentation: http://mysql-python.sourceforge.net/
|
||||
|
||||
Creating your tables
|
||||
|
|
@ -480,7 +480,7 @@ Django uses lowercase table names when it auto-generates table names from
|
|||
models, so this is mainly a consideration if you are overriding the table name
|
||||
via the :class:`~django.db.models.Options.db_table` parameter.
|
||||
|
||||
.. _known issues: http://bugs.mysql.com/bug.php?id=48875
|
||||
.. _known issues: https://bugs.mysql.com/bug.php?id=48875
|
||||
|
||||
Savepoints
|
||||
----------
|
||||
|
|
@ -583,7 +583,7 @@ are predominantly read-only or require a smaller installation footprint. As
|
|||
with all database servers, though, there are some differences that are
|
||||
specific to SQLite that you should be aware of.
|
||||
|
||||
.. _SQLite: http://www.sqlite.org/
|
||||
.. _SQLite: https://www.sqlite.org/
|
||||
|
||||
.. _sqlite-string-matching:
|
||||
|
||||
|
|
@ -609,7 +609,7 @@ would be fairly difficult to do robustly. Thus, Django exposes the default
|
|||
SQLite behavior and you should be aware of this when doing case-insensitive or
|
||||
substring filtering.
|
||||
|
||||
.. _documented at sqlite.org: http://www.sqlite.org/faq.html#q18
|
||||
.. _documented at sqlite.org: https://www.sqlite.org/faq.html#q18
|
||||
|
||||
Old SQLite and ``CASE`` expressions
|
||||
-----------------------------------
|
||||
|
|
@ -624,7 +624,7 @@ the notable exception of the Python 2.7 installers for Windows.
|
|||
As of this writing, the latest release for Windows - Python 2.7.10 - includes
|
||||
SQLite 3.6.21. You can install ``pysqlite2`` or replace ``sqlite3.dll`` (by
|
||||
default installed in ``C:\Python27\DLLs``) with a newer version from
|
||||
http://www.sqlite.org/ to remedy this issue.
|
||||
https://www.sqlite.org/ to remedy this issue.
|
||||
|
||||
.. _handling query parameters: https://code.djangoproject.com/ticket/24148
|
||||
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ Here are some useful attributes of ``UploadedFile``:
|
|||
handler may not receive the uploaded file content, but instead a URL or
|
||||
other pointer to the file. (see `RFC 2388`_ section 5.3).
|
||||
|
||||
.. _RFC 2388: http://www.ietf.org/rfc/rfc2388.txt
|
||||
.. _RFC 2388: https://www.ietf.org/rfc/rfc2388.txt
|
||||
|
||||
.. attribute:: UploadedFile.charset
|
||||
|
||||
|
|
|
|||
|
|
@ -699,7 +699,7 @@ For each field, we describe the default widget used if you don't specify
|
|||
``UploadedFile.content_type`` will be updated with the image's content type
|
||||
if Pillow can determine it, otherwise it will be set to ``None``.
|
||||
|
||||
.. _Pillow: http://pillow.readthedocs.org/en/latest/
|
||||
.. _Pillow: https://pillow.readthedocs.org/en/latest/
|
||||
.. _Image: https://pillow.readthedocs.org/en/latest/reference/Image.html
|
||||
|
||||
``IntegerField``
|
||||
|
|
|
|||
|
|
@ -911,7 +911,7 @@ optional arguments:
|
|||
|
||||
Requires the `Pillow`_ library.
|
||||
|
||||
.. _Pillow: http://pillow.readthedocs.org/en/latest/
|
||||
.. _Pillow: https://pillow.readthedocs.org/en/latest/
|
||||
|
||||
:class:`ImageField` instances are created in your database as ``varchar``
|
||||
columns with a default max length of 100 characters. As with other fields, you
|
||||
|
|
|
|||
|
|
@ -708,8 +708,8 @@ object. If it's ``None``, Django uses the :ref:`current time zone
|
|||
|
||||
.. _pytz: http://pytz.sourceforge.net/
|
||||
.. _Time Zones: http://www.postgresql.org/docs/current/static/datatype-datetime.html#DATATYPE-TIMEZONES
|
||||
.. _Choosing a Time Zone File: http://docs.oracle.com/cd/E11882_01/server.112/e10729/ch4datetime.htm#NLSPG258
|
||||
.. _mysql_tzinfo_to_sql: http://dev.mysql.com/doc/refman/5.6/en/mysql-tzinfo-to-sql.html
|
||||
.. _Choosing a Time Zone File: https://docs.oracle.com/cd/E11882_01/server.112/e10729/ch4datetime.htm#NLSPG258
|
||||
.. _mysql_tzinfo_to_sql: https://dev.mysql.com/doc/refman/5.6/en/mysql-tzinfo-to-sql.html
|
||||
|
||||
none
|
||||
~~~~
|
||||
|
|
@ -2769,7 +2769,7 @@ Note this is only available in MySQL and requires direct manipulation of the
|
|||
database to add the full-text index. By default Django uses BOOLEAN MODE for
|
||||
full text searches. See the `MySQL documentation`_ for additional details.
|
||||
|
||||
.. _MySQL documentation: http://dev.mysql.com/doc/refman/5.6/en/fulltext-boolean.html
|
||||
.. _MySQL documentation: https://dev.mysql.com/doc/refman/5.6/en/fulltext-boolean.html
|
||||
|
||||
.. fieldlookup:: regex
|
||||
|
||||
|
|
@ -2989,7 +2989,7 @@ Variance
|
|||
documentation`_ for instructions on obtaining and installing this
|
||||
extension.
|
||||
|
||||
.. _SQLite documentation: http://www.sqlite.org/contrib
|
||||
.. _SQLite documentation: https://www.sqlite.org/contrib
|
||||
|
||||
Query-related classes
|
||||
=====================
|
||||
|
|
|
|||
|
|
@ -289,7 +289,7 @@ Methods
|
|||
Otherwise the absolute URI is built using the server variables available in
|
||||
this request.
|
||||
|
||||
Example: ``"http://example.com/music/bands/the_beatles/?print=true"``
|
||||
Example: ``"https://example.com/music/bands/the_beatles/?print=true"``
|
||||
|
||||
.. note::
|
||||
|
||||
|
|
@ -860,7 +860,7 @@ types of HTTP responses. Like ``HttpResponse``, these subclasses live in
|
|||
|
||||
The first argument to the constructor is required -- the path to redirect
|
||||
to. This can be a fully qualified URL
|
||||
(e.g. ``'http://www.yahoo.com/search/'``), an absolute path with no domain
|
||||
(e.g. ``'https://www.yahoo.com/search/'``), an absolute path with no domain
|
||||
(e.g. ``'/search/'``), or even a relative path (e.g. ``'search/'``). In that
|
||||
last case, the client browser will reconstruct the full URL itself
|
||||
according to the current path. See :class:`HttpResponse` for other optional
|
||||
|
|
|
|||
|
|
@ -681,7 +681,7 @@ backend-specific.
|
|||
Supported by the PostgreSQL_ (``postgresql``) and MySQL_ (``mysql``) backends.
|
||||
|
||||
.. _PostgreSQL: http://www.postgresql.org/docs/current/static/multibyte.html
|
||||
.. _MySQL: http://dev.mysql.com/doc/refman/5.6/en/charset-database.html
|
||||
.. _MySQL: https://dev.mysql.com/doc/refman/5.6/en/charset-database.html
|
||||
|
||||
.. setting:: TEST_COLLATION
|
||||
|
||||
|
|
|
|||
|
|
@ -1227,7 +1227,7 @@ date
|
|||
|
||||
Formats a date according to the given format.
|
||||
|
||||
Uses a similar format as PHP's ``date()`` function (http://php.net/date)
|
||||
Uses a similar format as PHP's ``date()`` function (https://php.net/date)
|
||||
with some differences.
|
||||
|
||||
.. note::
|
||||
|
|
@ -1987,7 +1987,7 @@ output will be ``"Joel is a slug"``.
|
|||
more robust, you can use the ``bleach`` Python library, notably its
|
||||
`clean`_ method.
|
||||
|
||||
.. _clean: http://bleach.readthedocs.org/en/latest/clean.html
|
||||
.. _clean: https://bleach.readthedocs.org/en/latest/clean.html
|
||||
|
||||
.. templatefilter:: time
|
||||
|
||||
|
|
@ -2211,8 +2211,8 @@ For example::
|
|||
|
||||
{{ value|urlencode }}
|
||||
|
||||
If ``value`` is ``"http://www.example.org/foo?a=b&c=d"``, the output will be
|
||||
``"http%3A//www.example.org/foo%3Fa%3Db%26c%3Dd"``.
|
||||
If ``value`` is ``"https://www.example.org/foo?a=b&c=d"``, the output will be
|
||||
``"https%3A//www.example.org/foo%3Fa%3Db%26c%3Dd"``.
|
||||
|
||||
An optional argument containing the characters which should not be escaped can
|
||||
be provided.
|
||||
|
|
@ -2222,8 +2222,8 @@ provided when *all* characters should be escaped. For example::
|
|||
|
||||
{{ value|urlencode:"" }}
|
||||
|
||||
If ``value`` is ``"http://www.example.org/"``, the output will be
|
||||
``"http%3A%2F%2Fwww.example.org%2F"``.
|
||||
If ``value`` is ``"https://www.example.org/"``, the output will be
|
||||
``"https%3A%2F%2Fwww.example.org%2F"``.
|
||||
|
||||
.. templatefilter:: urlize
|
||||
|
||||
|
|
@ -2233,7 +2233,7 @@ urlize
|
|||
Converts URLs and email addresses in text into clickable links.
|
||||
|
||||
This template tag works on links prefixed with ``http://``, ``https://``, or
|
||||
``www.``. For example, ``http://goo.gl/aia1t`` will get converted but
|
||||
``www.``. For example, ``https://goo.gl/aia1t`` will get converted but
|
||||
``goo.gl/aia1t`` won't.
|
||||
|
||||
It also supports domain-only links ending in one of the original top level
|
||||
|
|
|
|||
|
|
@ -29,11 +29,11 @@ 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://dev.mysql.com/doc/refman/5.6/en/charset-database.html
|
||||
.. _MySQL manual: https://dev.mysql.com/doc/refman/5.6/en/charset-database.html
|
||||
.. _PostgreSQL manual: http://www.postgresql.org/docs/current/static/multibyte.html
|
||||
.. _Oracle manual: http://docs.oracle.com/cd/E11882_01/server.112/e10729/toc.htm
|
||||
.. _section 2: http://docs.oracle.com/cd/E11882_01/server.112/e10729/ch2charset.htm#NLSPG002
|
||||
.. _section 11: http://docs.oracle.com/cd/E11882_01/server.112/e10729/ch11charsetmig.htm#NLSPG011
|
||||
.. _Oracle manual: https://docs.oracle.com/cd/E11882_01/server.112/e10729/toc.htm
|
||||
.. _section 2: https://docs.oracle.com/cd/E11882_01/server.112/e10729/ch2charset.htm#NLSPG002
|
||||
.. _section 11: https://docs.oracle.com/cd/E11882_01/server.112/e10729/ch11charsetmig.htm#NLSPG011
|
||||
|
||||
All of Django's database backends automatically convert Unicode strings into
|
||||
the appropriate encoding for talking to the database. They also automatically
|
||||
|
|
@ -244,8 +244,8 @@ following is always true::
|
|||
So you can safely call it multiple times on the same URI/IRI without risking
|
||||
double-quoting problems.
|
||||
|
||||
.. _URI: http://www.ietf.org/rfc/rfc2396.txt
|
||||
.. _IRI: http://www.ietf.org/rfc/rfc3987.txt
|
||||
.. _URI: https://www.ietf.org/rfc/rfc2396.txt
|
||||
.. _IRI: https://www.ietf.org/rfc/rfc3987.txt
|
||||
|
||||
Models
|
||||
======
|
||||
|
|
|
|||
|
|
@ -327,13 +327,13 @@ For simplifying the selection of a generator use ``feedgenerator.DefaultFeed``
|
|||
which is currently ``Rss201rev2Feed``
|
||||
|
||||
For definitions of the different versions of RSS, see:
|
||||
http://web.archive.org/web/20110718035220/http://diveintomark.org/archives/2004/02/04/incompatible-rss
|
||||
https://web.archive.org/web/20110718035220/http://diveintomark.org/archives/2004/02/04/incompatible-rss
|
||||
|
||||
.. function:: get_tag_uri(url, date)
|
||||
|
||||
Creates a TagURI.
|
||||
|
||||
See http://web.archive.org/web/20110514113830/http://diveintomark.org/archives/2004/05/28/howto-atom-id
|
||||
See https://web.archive.org/web/20110514113830/http://diveintomark.org/archives/2004/05/28/howto-atom-id
|
||||
|
||||
SyndicationFeed
|
||||
---------------
|
||||
|
|
@ -419,7 +419,7 @@ Rss201rev2Feed
|
|||
|
||||
.. class:: Rss201rev2Feed(RssFeed)
|
||||
|
||||
Spec: http://cyber.law.harvard.edu/rss/rss.html
|
||||
Spec: https://cyber.law.harvard.edu/rss/rss.html
|
||||
|
||||
RssUserland091Feed
|
||||
------------------
|
||||
|
|
@ -433,7 +433,7 @@ Atom1Feed
|
|||
|
||||
.. class:: Atom1Feed(SyndicationFeed)
|
||||
|
||||
Spec: http://tools.ietf.org/html/rfc4287
|
||||
Spec: https://tools.ietf.org/html/rfc4287
|
||||
|
||||
``django.utils.functional``
|
||||
===========================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue