diff options
| author | Tom Christie | 2014-11-24 13:21:15 +0000 |
|---|---|---|
| committer | Tom Christie | 2014-11-24 13:21:15 +0000 |
| commit | 3371131a61f680df42e6b54a24db4b18a1c3c9aa (patch) | |
| tree | a8db3d656ca0725571a3e4b7339d3a39e0e8d26c /docs/tutorial | |
| parent | eb77de4bdd9d470b2d11485f57defde33dd74bba (diff) | |
| parent | 790a651893c4bc6e68bc4d724d5df4ea3f883ced (diff) | |
| download | django-rest-framework-3371131a61f680df42e6b54a24db4b18a1c3c9aa.tar.bz2 | |
Merge pull request #2116 from LuRsT/patch-5
Fixed database update instructions
Diffstat (limited to 'docs/tutorial')
| -rw-r--r-- | docs/tutorial/4-authentication-and-permissions.md | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/tutorial/4-authentication-and-permissions.md b/docs/tutorial/4-authentication-and-permissions.md index adab1b55..4e4edeea 100644 --- a/docs/tutorial/4-authentication-and-permissions.md +++ b/docs/tutorial/4-authentication-and-permissions.md @@ -44,7 +44,9 @@ 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. rm tmp.db - python manage.py syncdb + rm -r snippets/migrations + python manage.py makemigrations snippets + python manage.py migrate 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 `createsuperuser` command. |
