mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-27 16:40:03 +03:00
Remove instruction to pip install Django
This commit is contained in:
parent
19655edbf7
commit
5ffdb7aa8f
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
1
requirements/requirements-base.txt
Normal file
1
requirements/requirements-base.txt
Normal file
|
@ -0,0 +1 @@
|
|||
django
|
Loading…
Reference in New Issue
Block a user