Skip to content

Commit 3371131

Browse files
committed
Merge pull request #2116 from LuRsT/patch-5
Fixed database update instructions
2 parents eb77de4 + 790a651 commit 3371131

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/tutorial/4-authentication-and-permissions.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ When that's all done we'll need to update our database tables.
4444
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.
4545

4646
rm tmp.db
47-
python manage.py syncdb
47+
rm -r snippets/migrations
48+
python manage.py makemigrations snippets
49+
python manage.py migrate
4850

4951
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.
5052

0 commit comments

Comments
 (0)