diff options
| author | Tim Graham <timograham@gmail.com> | 2019-01-18 10:04:29 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2019-01-30 10:19:48 -0500 |
| commit | 7e6b214ed34f5562dbd83cf54924a5b589a29715 (patch) | |
| tree | 2a2aa16c023638436bea449acdb06224bf7f33c7 /docs | |
| parent | 5a5c77d55dc85c7e6cf910243257e408887f412a (diff) | |
Fixed #30116 -- Dropped support for Python 3.5.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/howto/windows.txt | 6 | ||||
| -rw-r--r-- | docs/internals/contributing/writing-code/unit-tests.txt | 6 | ||||
| -rw-r--r-- | docs/intro/reusable-apps.txt | 2 | ||||
| -rw-r--r-- | docs/intro/tutorial01.txt | 2 | ||||
| -rw-r--r-- | docs/ref/utils.txt | 12 | ||||
| -rw-r--r-- | docs/topics/testing/tools.txt | 17 |
6 files changed, 8 insertions, 37 deletions
diff --git a/docs/howto/windows.txt b/docs/howto/windows.txt index c37c23eb49..0939ddd7c4 100644 --- a/docs/howto/windows.txt +++ b/docs/howto/windows.txt @@ -2,7 +2,7 @@ How to install Django on Windows ================================ -This document will guide you through installing Python 3.5 and Django on +This document will guide you through installing Python 3.7 and Django on Windows. It also provides instructions for installing `virtualenv`_ and `virtualenvwrapper`_, which make it easier to work on Python projects. This is meant as a beginner's guide for users working on Django projects and does not @@ -17,12 +17,12 @@ Install Python ============== Django is a Python web framework, thus requiring Python to be installed on your -machine. At the time of writing, Python 3.5 is the latest version. +machine. At the time of writing, Python 3.7 is the latest version. To install Python on your machine go to https://python.org/downloads/. The website should offer you a download button for the latest Python version. Download the executable installer and run it. Check the box next to ``Add -Python 3.5 to PATH`` and then click ``Install Now``. +Python 3.7 to PATH`` and then click ``Install Now``. After installation, open the command prompt and check that the Python version matches the version you installed by executing:: diff --git a/docs/internals/contributing/writing-code/unit-tests.txt b/docs/internals/contributing/writing-code/unit-tests.txt index 3480e3f2ca..51d1e61313 100644 --- a/docs/internals/contributing/writing-code/unit-tests.txt +++ b/docs/internals/contributing/writing-code/unit-tests.txt @@ -90,12 +90,12 @@ 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.5 +<running-unit-tests-settings>`. For example, to run the tests on Python 3.7 using PostgreSQL:: - $ tox -e py35-postgres -- --settings=my_postgres_settings + $ tox -e py37-postgres -- --settings=my_postgres_settings -This command sets up a Python 3.5 virtual environment, installs Django's +This command sets up a Python 3.7 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``). diff --git a/docs/intro/reusable-apps.txt b/docs/intro/reusable-apps.txt index 61c413de00..f156c2a63b 100644 --- a/docs/intro/reusable-apps.txt +++ b/docs/intro/reusable-apps.txt @@ -219,8 +219,8 @@ this. For a small app like polls, this process isn't too difficult. 'License :: OSI Approved :: BSD License', # example license 'Operating System :: OS Independent', 'Programming Language :: Python', - 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', 'Topic :: Internet :: WWW/HTTP', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', ], diff --git a/docs/intro/tutorial01.txt b/docs/intro/tutorial01.txt index 208a4f3a3b..c25e363d65 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.5 and +This tutorial is written for Django |version|, which supports Python 3.6 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/utils.txt b/docs/ref/utils.txt index 84cffddde0..300d4c1bea 100644 --- a/docs/ref/utils.txt +++ b/docs/ref/utils.txt @@ -514,18 +514,6 @@ https://web.archive.org/web/20110718035220/http://diveintomark.org/archives/2004 z = person.friends # does not call x is z # is True - .. warning:: - - .. _cached-property-mangled-name: - - On Python < 3.6, ``cached_property`` doesn't work properly with a - mangled__ name unless it's passed a ``name`` of the form - ``_Class__attribute``:: - - __friends = cached_property(get_friends, name='_Person__friends') - - __ https://docs.python.org/faq/programming.html#i-try-to-use-spam-and-i-get-an-error-about-someclassname-spam - .. function:: keep_lazy(func, *resultclasses) Django offers many utility functions (particularly in ``django.utils``) diff --git a/docs/topics/testing/tools.txt b/docs/topics/testing/tools.txt index 233edde2ce..4ffe84dd04 100644 --- a/docs/topics/testing/tools.txt +++ b/docs/topics/testing/tools.txt @@ -1329,23 +1329,6 @@ The decorator can also be applied to test case classes:: decorator. For a given class, :func:`~django.test.modify_settings` is always applied after :func:`~django.test.override_settings`. -.. admonition:: Considerations with Python 3.5 - - If using Python 3.5 (or older, if using an older version of Django), avoid - mixing ``remove`` with ``append`` and ``prepend`` in - :func:`~django.test.modify_settings`. In some cases it matters whether a - value is first added and then removed or vice versa, and dictionary key - order isn't preserved until Python 3.6. Instead, apply the decorator twice - to guarantee the order of operations. For example, to ensure that - ``SessionMiddleware`` appears first in ``MIDDLEWARE``:: - - @modify_settings(MIDDLEWARE={ - 'remove': ['django.contrib.sessions.middleware.SessionMiddleware'], - ) - @modify_settings(MIDDLEWARE={ - 'prepend': ['django.contrib.sessions.middleware.SessionMiddleware'], - }) - .. warning:: The settings file contains some settings that are only consulted during |
