From 59f8ae86ad05d53748106fc3f61d4bb150c25337 Mon Sep 17 00:00:00 2001 From: Roman Voropaev Date: Wed, 31 Aug 2016 14:32:18 +0300 Subject: [PATCH 1/3] Shorter commands MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Just less characters to knock into terminal ☺ --- docs/tutorial/quickstart.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/docs/tutorial/quickstart.md b/docs/tutorial/quickstart.md index 96fed2767..b354de4ac 100644 --- a/docs/tutorial/quickstart.md +++ b/docs/tutorial/quickstart.md @@ -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: From fb3f6526611e22db4dcac8d8ea4e99b01c10ffcd Mon Sep 17 00:00:00 2001 From: Roman Voropaev Date: Thu, 8 Sep 2016 23:20:56 +0300 Subject: [PATCH 2/3] Updates Not so much changes, but nevertheless ) --- docs/tutorial/quickstart.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/tutorial/quickstart.md b/docs/tutorial/quickstart.md index b354de4ac..1f0f1b80d 100644 --- a/docs/tutorial/quickstart.md +++ b/docs/tutorial/quickstart.md @@ -12,10 +12,11 @@ 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 - . env/bin/activate # On Windows use `env\Scripts\activate` + source env/bin/activate # On Windows use `env\Scripts\activate` # Install Django and Django REST framework into the virtualenv - pip install django djangorestframework + pip install django + pip install djangorestframework # Set up a new project with a single application django-admin startproject tutorial . # Note the trailing '.' character @@ -25,11 +26,11 @@ Create a new Django project named `tutorial`, then start a new app called `quick Now sync your database for the first time: - python manage.py migrate + ./manage.py migrate We'll also create an initial user named `admin` with a password of `password123`. We'll authenticate as that user later in our example. - python manage.py createsuperuser + ./manage.py createsuperuser Once you've set up a database and initial user created and ready to go, open up the app's directory and we'll get coding... From 0488307ded26188d64abdc6a3a39f87ea1039ecb Mon Sep 17 00:00:00 2001 From: Roman Voropaev Date: Fri, 16 Sep 2016 10:35:53 +0400 Subject: [PATCH 3/3] Whitespace remove --- docs/tutorial/quickstart.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorial/quickstart.md b/docs/tutorial/quickstart.md index 1f0f1b80d..e5474faae 100644 --- a/docs/tutorial/quickstart.md +++ b/docs/tutorial/quickstart.md @@ -15,7 +15,7 @@ Create a new Django project named `tutorial`, then start a new app called `quick source env/bin/activate # On Windows use `env\Scripts\activate` # Install Django and Django REST framework into the virtualenv - pip install django + pip install django pip install djangorestframework # Set up a new project with a single application