mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-05 21:10: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
|
||||
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
|
||||
pip install django
|
||||
pip install djangorestframework
|
||||
pip install django djangorestframework
|
||||
|
||||
# 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
|
||||
django-admin.py startapp quickstart
|
||||
./manage.py startapp quickstart
|
||||
cd ..
|
||||
|
||||
Now sync your database for the first time:
|
||||
|
|
Loading…
Reference in New Issue
Block a user