diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-01-19 08:35:16 +0100 |
|---|---|---|
| committer | Carlton Gibson <carlton@noumenal.es> | 2021-02-10 10:20:54 +0100 |
| commit | ec0ff406311de88f4e2a135d784363424fe602aa (patch) | |
| tree | c1659b85ea145704a1b733d40a6a9a45e9332d0f /docs | |
| parent | 9c6ba876928fd20194ac3238dc06aeae66d7bd50 (diff) | |
Fixed #32355 -- Dropped support for Python 3.6 and 3.7
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/internals/contributing/writing-code/unit-tests.txt | 10 | ||||
| -rw-r--r-- | docs/intro/reusable-apps.txt | 5 | ||||
| -rw-r--r-- | docs/intro/tutorial01.txt | 2 | ||||
| -rw-r--r-- | docs/ref/django-admin.txt | 4 | ||||
| -rw-r--r-- | docs/ref/utils.txt | 4 | ||||
| -rw-r--r-- | docs/releases/4.0.txt | 2 |
6 files changed, 11 insertions, 16 deletions
diff --git a/docs/internals/contributing/writing-code/unit-tests.txt b/docs/internals/contributing/writing-code/unit-tests.txt index fef10b2db4..373df5ea42 100644 --- a/docs/internals/contributing/writing-code/unit-tests.txt +++ b/docs/internals/contributing/writing-code/unit-tests.txt @@ -89,14 +89,14 @@ In addition to the default environments, ``tox`` supports running unit tests for other versions of Python and other database backends. Since Django's test suite doesn't bundle a settings file for database backends other than SQLite, however, you must :ref:`create and provide your own test settings -<running-unit-tests-settings>`. For example, to run the tests on Python 3.7 +<running-unit-tests-settings>`. For example, to run the tests on Python 3.9 using PostgreSQL: .. console:: - $ tox -e py37-postgres -- --settings=my_postgres_settings + $ tox -e py39-postgres -- --settings=my_postgres_settings -This command sets up a Python 3.7 virtual environment, installs Django's +This command sets up a Python 3.9 virtual environment, installs Django's test suite dependencies (including those for PostgreSQL), and calls ``runtests.py`` with the supplied arguments (in this case, ``--settings=my_postgres_settings``). @@ -110,14 +110,14 @@ set. For example, the following is equivalent to the command above: .. code-block:: console - $ DJANGO_SETTINGS_MODULE=my_postgres_settings tox -e py35-postgres + $ DJANGO_SETTINGS_MODULE=my_postgres_settings tox -e py39-postgres Windows users should use: .. code-block:: doscon ...\> set DJANGO_SETTINGS_MODULE=my_postgres_settings - ...\> tox -e py35-postgres + ...\> tox -e py39-postgres Running the JavaScript tests ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/docs/intro/reusable-apps.txt b/docs/intro/reusable-apps.txt index 3cf0cfdc60..ea3bd64584 100644 --- a/docs/intro/reusable-apps.txt +++ b/docs/intro/reusable-apps.txt @@ -212,16 +212,15 @@ this. For a small app like polls, this process isn't too difficult. Programming Language :: Python Programming Language :: Python :: 3 Programming Language :: Python :: 3 :: Only - Programming Language :: Python :: 3.6 - Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.8 + Programming Language :: Python :: 3.9 Topic :: Internet :: WWW/HTTP Topic :: Internet :: WWW/HTTP :: Dynamic Content [options] include_package_data = true packages = find: - python_requires = >=3.6 + python_requires = >=3.8 install_requires = Django >= X.Y # Replace "X.Y" as appropriate diff --git a/docs/intro/tutorial01.txt b/docs/intro/tutorial01.txt index 05f99b6f76..c2bfcd80c4 100644 --- a/docs/intro/tutorial01.txt +++ b/docs/intro/tutorial01.txt @@ -23,7 +23,7 @@ in a shell prompt (indicated by the $ prefix): If Django is installed, you should see the version of your installation. If it isn't, you'll get an error telling "No module named django". -This tutorial is written for Django |version|, which supports Python 3.6 and +This tutorial is written for Django |version|, which supports Python 3.8 and later. If the Django version doesn't match, you can refer to the tutorial for your version of Django by using the version switcher at the bottom right corner of this page, or update Django to the newest version. If you're using an older diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt index 2dcd860400..7252fca57f 100644 --- a/docs/ref/django-admin.txt +++ b/docs/ref/django-admin.txt @@ -1507,10 +1507,6 @@ May be specified multiple times and combined with :option:`test --tag`. Runs test methods and classes matching test name patterns, in the same way as :option:`unittest's -k option<unittest.-k>`. Can be specified multiple times. -.. admonition:: Python 3.7 and later - - This feature is only available for Python 3.7 and later. - .. django-admin-option:: --pdb Spawns a ``pdb`` debugger at each test error or failure. If you have it diff --git a/docs/ref/utils.txt b/docs/ref/utils.txt index 843d6ab4de..485009bde6 100644 --- a/docs/ref/utils.txt +++ b/docs/ref/utils.txt @@ -493,9 +493,7 @@ https://web.archive.org/web/20110718035220/http://diveintomark.org/archives/2004 expensive ``get_friends()`` method and wanted to allow calling it without retrieving the cached value, you could write:: - friends = cached_property(get_friends, name='friends') - - You only need the ``name`` argument for Python < 3.6 support. + friends = cached_property(get_friends) While ``person.get_friends()`` will recompute the friends on each call, the value of the cached property will persist until you delete it as described diff --git a/docs/releases/4.0.txt b/docs/releases/4.0.txt index 296967a92b..88a73369ef 100644 --- a/docs/releases/4.0.txt +++ b/docs/releases/4.0.txt @@ -21,6 +21,8 @@ Python compatibility Django 4.0 supports Python 3.8, 3.9, and 3.10. We **highly recommend** and only officially support the latest release of each series. +The Django 3.2.x series is the last to support Python 3.6 and 3.7. + .. _whats-new-4.0: What's new in Django 4.0 |
