From 84958d131a29d80acea94dec5260b484556e73d0 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Fri, 5 Oct 2012 15:22:30 +0100 Subject: Doc style tweaks --- docs/tutorial/1-serialization.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docs/tutorial') diff --git a/docs/tutorial/1-serialization.md b/docs/tutorial/1-serialization.md index 5d830315..6744eafe 100644 --- a/docs/tutorial/1-serialization.md +++ b/docs/tutorial/1-serialization.md @@ -25,6 +25,7 @@ Now that we're inside a virtualenv environment, we can install our package requi Okay, we're ready to get coding. To get started, let's create a new project to work with. + cd ~ django-admin.py startproject tutorial cd tutorial @@ -78,7 +79,7 @@ Don't forget to sync the database for the first time. ## Creating a Serializer class -We're going to create a simple Web API that we can use to edit these comment objects with. The first thing we need is a way of serializing and deserializing the objects into representations such as `json`. We do this by declaring serializers that work very similarly to Django's forms. Create a file in the project named `serializers.py` and add the following. +We're going to create a simple Web API that we can use to edit these comment objects with. The first thing we need is a way of serializing and deserializing the objects into representations such as `json`. We do this by declaring serializers that work very similarly to Django's forms. Create a file in the `blog` directory named `serializers.py` and add the following. from blog import models from rest_framework import serializers -- cgit v1.2.3