From 5769306c10a6ad7a809f2e96b1c82dc61935b9eb Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Wed, 19 Nov 2014 13:06:02 +0000 Subject: Add migrate command --- tutorial/1-serialization.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorial/1-serialization.html b/tutorial/1-serialization.html index 94145642..a94ef276 100644 --- a/tutorial/1-serialization.html +++ b/tutorial/1-serialization.html @@ -288,8 +288,8 @@ class Snippet(models.Model): ordering = ('created',)
Don't forget to sync the database for the first time.
-python manage.py syncdb
-python manage.py makemigrations snippets
+python manage.py migrateThe first thing we need to get started on our Web API is to provide a way of serializing and deserializing the snippet instances into representations such as json.  We can do this by declaring serializers that work very similar to Django's forms.  Create a file in the snippets directory named serializers.py and add the following.
from django.forms import widgets
-- 
cgit v1.2.3