mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-06 21:40:13 +03:00
Shorter commands
Just less characters to knock into terminal ☺
This commit is contained in:
parent
80bd3b9722
commit
59f8ae86ad
|
@ -12,16 +12,15 @@ Create a new Django project named `tutorial`, then start a new app called `quick
|
||||||
|
|
||||||
# Create a virtualenv to isolate our package dependencies locally
|
# Create a virtualenv to isolate our package dependencies locally
|
||||||
virtualenv env
|
virtualenv env
|
||||||
source env/bin/activate # On Windows use `env\Scripts\activate`
|
. env/bin/activate # On Windows use `env\Scripts\activate`
|
||||||
|
|
||||||
# Install Django and Django REST framework into the virtualenv
|
# Install Django and Django REST framework into the virtualenv
|
||||||
pip install django
|
pip install django djangorestframework
|
||||||
pip install djangorestframework
|
|
||||||
|
|
||||||
# Set up a new project with a single application
|
# Set up a new project with a single application
|
||||||
django-admin.py startproject tutorial . # Note the trailing '.' character
|
django-admin startproject tutorial . # Note the trailing '.' character
|
||||||
cd tutorial
|
cd tutorial
|
||||||
django-admin.py startapp quickstart
|
./manage.py startapp quickstart
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
Now sync your database for the first time:
|
Now sync your database for the first time:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user