diff --git a/django/contrib/gis/geoip2/__init__.py b/django/contrib/gis/geoip2/__init__.py index 2d7d7a7e92..191706b01e 100644 --- a/django/contrib/gis/geoip2/__init__.py +++ b/django/contrib/gis/geoip2/__init__.py @@ -7,7 +7,7 @@ GeoIP(R) is a registered trademark of MaxMind, Inc. For IP-based geolocation, this module requires the GeoLite2 Country and City datasets, in binary format (CSV will not work!). The datasets may be -downloaded from MaxMind at http://dev.maxmind.com/geoip/geoip2/geolite2/. +downloaded from MaxMind at https://dev.maxmind.com/geoip/geoip2/geolite2/. Grab GeoLite2-Country.mmdb.gz and GeoLite2-City.mmdb.gz, and unzip them in the directory corresponding to settings.GEOIP_PATH. """ diff --git a/django/core/files/locks.py b/django/core/files/locks.py index b02faaa181..fdb9665332 100644 --- a/django/core/files/locks.py +++ b/django/core/files/locks.py @@ -5,7 +5,7 @@ Based partially on an example by Jonathan Feignberg in the Python Cookbook [1] (licensed under the Python Software License) and a ctypes port by Anatoly Techtonik for Roundup [2] (license [3]). -[1] http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65203 +[1] https://code.activestate.com/recipes/65203/ [2] https://sourceforge.net/p/roundup/code/ci/default/tree/roundup/backends/portalocker.py [3] https://sourceforge.net/p/roundup/code/ci/default/tree/COPYING.txt diff --git a/django/db/backends/mysql/schema.py b/django/db/backends/mysql/schema.py index b45d3b8d98..17827c2195 100644 --- a/django/db/backends/mysql/schema.py +++ b/django/db/backends/mysql/schema.py @@ -126,7 +126,7 @@ class DatabaseSchemaEditor(BaseDatabaseSchemaEditor): MySQL can remove an implicit FK index on a field when that field is covered by another index like a unique_together. "covered" here means that the more complex index starts like the simpler one. - http://bugs.mysql.com/bug.php?id=37910 / Django ticket #24757 + https://bugs.mysql.com/bug.php?id=37910 / Django ticket #24757 We check here before removing the [unique|index]_together if we have to recreate a FK index. """ diff --git a/django/http/multipartparser.py b/django/http/multipartparser.py index f464caa1b4..ddf7cfa2f6 100644 --- a/django/http/multipartparser.py +++ b/django/http/multipartparser.py @@ -685,7 +685,7 @@ def parse_header(line): name = p[:i].strip().lower().decode('ascii') if name.endswith('*'): # Lang/encoding embedded in the value (like "filename*=UTF-8''file.ext") - # http://tools.ietf.org/html/rfc2231#section-4 + # https://tools.ietf.org/html/rfc2231#section-4 name = name[:-1] if p.count(b"'") == 2: has_encoding = True diff --git a/django/utils/dateformat.py b/django/utils/dateformat.py index a03b127785..70bfb32e01 100644 --- a/django/utils/dateformat.py +++ b/django/utils/dateformat.py @@ -1,6 +1,6 @@ """ PHP date() style date formatting -See http://www.php.net/date for format strings +See https://www.php.net/date for format strings Usage: >>> import datetime diff --git a/django/utils/jslex.py b/django/utils/jslex.py index d775d23a35..8abf5f1126 100644 --- a/django/utils/jslex.py +++ b/django/utils/jslex.py @@ -92,7 +92,7 @@ class JsLexer(Lexer): # lex correct JavaScript, so much of this is simplified. # Details of JavaScript lexical structure are taken from - # http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-262.pdf + # https://www.ecma-international.org/publications-and-standards/standards/ecma-262/ # A useful explanation of automatic semicolon insertion is at # http://inimino.org/~inimino/blog/javascript_semicolons diff --git a/tests/utils_tests/test_crypto.py b/tests/utils_tests/test_crypto.py index 9dbfd9fe57..d6e0774bf3 100644 --- a/tests/utils_tests/test_crypto.py +++ b/tests/utils_tests/test_crypto.py @@ -58,7 +58,7 @@ class TestUtilsCryptoMisc(SimpleTestCase): class TestUtilsCryptoPBKDF2(unittest.TestCase): - # http://tools.ietf.org/html/draft-josefsson-pbkdf2-test-vectors-06 + # https://tools.ietf.org/html/draft-josefsson-pbkdf2-test-vectors-06 rfc_vectors = [ { "args": {