From c4fa0143f7117a07a3f0258a063f5265e795ffbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Srinivas=20Reddy=20Thatiparthy=20=28=E0=B0=B6=E0=B1=8D?= =?UTF-8?q?=E0=B0=B0=E0=B1=80=E0=B0=A8=E0=B0=BF=E0=B0=B5=E0=B0=BE=E0=B0=B8?= =?UTF-8?q?=E0=B1=8D=20=E0=B0=B0=E0=B1=86=E0=B0=A1=E0=B1=8D=E0=B0=A1?= =?UTF-8?q?=E0=B0=BF=20=E0=B0=A4=E0=B0=BE=E0=B0=9F=E0=B0=BF=E0=B0=AA?= =?UTF-8?q?=E0=B0=B0=E0=B1=8D=E0=B0=A4=E0=B0=BF=29?= Date: Mon, 26 Feb 2018 19:28:56 +0530 Subject: [PATCH] Removed "Remove any old versions of Django" install instructions. They are obsolete given the prevalence of pip. --- docs/howto/upgrade-version.txt | 9 +-------- docs/intro/install.txt | 7 ------- docs/topics/install.txt | 22 ---------------------- 3 files changed, 1 insertion(+), 37 deletions(-) diff --git a/docs/howto/upgrade-version.txt b/docs/howto/upgrade-version.txt index 09dc888278..9cd52d7a99 100644 --- a/docs/howto/upgrade-version.txt +++ b/docs/howto/upgrade-version.txt @@ -89,19 +89,12 @@ Once you're ready, it is time to :doc:`install the new Django version `. If you are using virtualenv_ and it is a major upgrade, you might want to set up a new environment with all the dependencies first. -Exactly which steps you will need to take depends on your installation process. -The most convenient way is to use pip_ with the ``--upgrade`` or ``-U`` flag: +If you installed Django with pip_, you can use the ``--upgrade`` or ``-U`` flag: .. console:: $ pip install -U Django -pip_ also automatically uninstalls the previous version of Django. - -If you use some other installation process, you might have to manually -:ref:`uninstall the old Django version ` and -should look at the complete installation instructions. - .. _pip: https://pip.pypa.io/ .. _virtualenv: https://virtualenv.pypa.io/ diff --git a/docs/intro/install.txt b/docs/intro/install.txt index 571fc84303..a750189f85 100644 --- a/docs/intro/install.txt +++ b/docs/intro/install.txt @@ -34,13 +34,6 @@ This step is only necessary if you'd like to work with a "large" database engine like PostgreSQL, MySQL, or Oracle. To install such a database, consult the :ref:`database installation information `. -Remove any old versions of Django -================================= - -If you are upgrading your installation of Django from a previous version, you -will need to :ref:`uninstall the old Django version before installing the new -version `. - Install Django ============== diff --git a/docs/topics/install.txt b/docs/topics/install.txt index 19b3a03771..c497c5e2d3 100644 --- a/docs/topics/install.txt +++ b/docs/topics/install.txt @@ -122,28 +122,6 @@ database queries, Django will need permission to create a test database. .. _cx_Oracle: https://oracle.github.io/python-cx_Oracle/ .. _Oracle: https://www.oracle.com/ -.. _removing-old-versions-of-django: - -Remove any old versions of Django -================================= - -If you are upgrading your installation of Django from a previous version, -you will need to uninstall the old Django version before installing the -new version. - -If you installed Django using pip_ or ``easy_install`` previously, installing -with pip_ or ``easy_install`` again will automatically take care of the old -version, so you don't need to do it yourself. - -If you previously installed Django using ``python setup.py install``, -uninstalling is as simple as deleting the ``django`` directory from your Python -``site-packages``. To find the directory you need to remove, you can run the -following at your shell prompt (not the interactive Python prompt): - -.. console:: - - $ python -c "import django; print(django.__path__)" - .. _install-django-code: Install the Django code