diff options
| author | Tom Christie | 2014-06-12 12:22:09 +0100 |
|---|---|---|
| committer | Tom Christie | 2014-06-12 12:22:09 +0100 |
| commit | 106c8db6f5cacf1e37978d5cf13c9fde3ca29ce9 (patch) | |
| tree | 6cc268279408148a61c95a63cad523dc0e6589a4 /tutorial/4-authentication-and-permissions.html | |
| parent | 03ddd237c93ea5b9159260c49fd856595dbea53c (diff) | |
| download | django-rest-framework-106c8db6f5cacf1e37978d5cf13c9fde3ca29ce9.tar.bz2 | |
Latest docs build
Diffstat (limited to 'tutorial/4-authentication-and-permissions.html')
| -rw-r--r-- | tutorial/4-authentication-and-permissions.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tutorial/4-authentication-and-permissions.html b/tutorial/4-authentication-and-permissions.html index d2f2f803..923a2c67 100644 --- a/tutorial/4-authentication-and-permissions.html +++ b/tutorial/4-authentication-and-permissions.html @@ -228,10 +228,10 @@ from pygments import highlight <p>When that's all done we'll need to update our database tables. Normally we'd create a database migration in order to do that, but for the purposes of this tutorial, let's just delete the database and start again.</p> <pre class="prettyprint lang-py"><code>rm tmp.db -python ./manage.py syncdb +python manage.py syncdb </code></pre> <p>You might also want to create a few different users, to use for testing the API. The quickest way to do this will be with the <code>createsuperuser</code> command.</p> -<pre class="prettyprint lang-py"><code>python ./manage.py createsuperuser +<pre class="prettyprint lang-py"><code>python manage.py createsuperuser </code></pre> <h2 id="adding-endpoints-for-our-user-models">Adding endpoints for our User models</h2> <p>Now that we've got some users to work with, we'd better add representations of those users to our API. Creating a new serializer is easy. In <code>serializers.py</code> add:</p> |
