aboutsummaryrefslogtreecommitdiffstats
path: root/tutorial/quickstart.html
diff options
context:
space:
mode:
authorTom Christie2014-08-20 11:09:41 +0100
committerTom Christie2014-08-20 11:09:41 +0100
commit66f25af53a6e1815178b8a010ffd451822ffdc6e (patch)
tree6a068930c3c64e61224decfedb68c9d9c596e119 /tutorial/quickstart.html
parent623304a19dbbb7bfe67b865edbaf47205bdba429 (diff)
downloaddjango-rest-framework-66f25af53a6e1815178b8a010ffd451822ffdc6e.tar.bz2
Latest sponsor update
Diffstat (limited to 'tutorial/quickstart.html')
-rw-r--r--tutorial/quickstart.html7
1 files changed, 5 insertions, 2 deletions
diff --git a/tutorial/quickstart.html b/tutorial/quickstart.html
index 171e7255..47107d0e 100644
--- a/tutorial/quickstart.html
+++ b/tutorial/quickstart.html
@@ -205,8 +205,8 @@ a.fusion-poweredby {
<p>We're going to create a simple API to allow admin users to view and edit the users and groups in the system.</p>
<h2 id="project-setup">Project setup</h2>
<p>Create a new Django project named <code>tutorial</code>, then start a new app called <code>quickstart</code>.</p>
-<pre class="prettyprint lang-py"><code># Set up a new project
-django-admin.py startproject tutorial
+<pre class="prettyprint lang-py"><code># Create the project directory
+mkdir tutorial
cd tutorial
# Create a virtualenv to isolate our package dependencies locally
@@ -217,6 +217,9 @@ source env/bin/activate # On Windows use `env\Scripts\activate`
pip install django
pip install djangorestframework
+# Set up a new project
+django-admin.py startproject tutorial
+
# Create a new app
python manage.py startapp quickstart
</code></pre>