From 5ffdb7aa8ff17a00fb273ee6166a4d3e892593cf Mon Sep 17 00:00:00 2001 From: Carlin Kartchner Date: Sun, 24 Jan 2021 15:20:42 -0500 Subject: [PATCH] Remove instruction to pip install Django --- CONTRIBUTING.md | 1 - README.md | 1 - docs/community/contributing.md | 1 - docs/tutorial/1-serialization.md | 1 - docs/tutorial/quickstart.md | 3 +-- requirements.txt | 7 ++++--- requirements/requirements-base.txt | 1 + 7 files changed, 6 insertions(+), 9 deletions(-) create mode 100644 requirements/requirements-base.txt diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 2f1aad08f4..f3cbf2ff66 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -61,7 +61,6 @@ To run the tests, clone the repository, and then: # Setup the virtual environment python3 -m venv env source env/bin/activate - pip install django pip install -r requirements.txt # Run the tests diff --git a/README.md b/README.md index 8af1466f8a..f4bb7d666d 100644 --- a/README.md +++ b/README.md @@ -77,7 +77,6 @@ Let's take a look at a quick example of using REST framework to build a simple m Startup up a new project like so... - pip install django pip install djangorestframework django-admin startproject example . ./manage.py migrate diff --git a/docs/community/contributing.md b/docs/community/contributing.md index cb67100d2b..1df1538e6d 100644 --- a/docs/community/contributing.md +++ b/docs/community/contributing.md @@ -67,7 +67,6 @@ To run the tests, clone the repository, and then: # Setup the virtual environment python3 -m venv env source env/bin/activate - pip install django pip install -r requirements.txt # Run the tests diff --git a/docs/tutorial/1-serialization.md b/docs/tutorial/1-serialization.md index 85d8676b1d..5b0610e57b 100644 --- a/docs/tutorial/1-serialization.md +++ b/docs/tutorial/1-serialization.md @@ -21,7 +21,6 @@ Before we do anything else we'll create a new virtual environment, using [venv]. Now that we're inside a virtual environment, we can install our package requirements. - pip install django pip install djangorestframework pip install pygments # We'll be using this for the code highlighting diff --git a/docs/tutorial/quickstart.md b/docs/tutorial/quickstart.md index ee839790f1..8e20674a64 100644 --- a/docs/tutorial/quickstart.md +++ b/docs/tutorial/quickstart.md @@ -14,8 +14,7 @@ Create a new Django project named `tutorial`, then start a new app called `quick python3 -m venv env source env/bin/activate # On Windows use `env\Scripts\activate` - # Install Django and Django REST framework into the virtual environment - pip install django + # Install Django REST framework into the virtual environment pip install djangorestframework # Set up a new project with a single application diff --git a/requirements.txt b/requirements.txt index b4e5ff5797..94d839ef6f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,8 +6,9 @@ # only included the relevant sets when running tox, and ensures # we are only ever declaring our dependencies in one place. --r requirements/requirements-optionals.txt --r requirements/requirements-testing.txt --r requirements/requirements-documentation.txt +-r requirements/requirements-base.txt -r requirements/requirements-codestyle.txt +-r requirements/requirements-documentation.txt +-r requirements/requirements-optionals.txt -r requirements/requirements-packaging.txt +-r requirements/requirements-testing.txt diff --git a/requirements/requirements-base.txt b/requirements/requirements-base.txt new file mode 100644 index 0000000000..d3e4ba564f --- /dev/null +++ b/requirements/requirements-base.txt @@ -0,0 +1 @@ +django