diff options
| author | Tom Christie | 2012-10-05 15:22:30 +0100 |
|---|---|---|
| committer | Tom Christie | 2012-10-05 15:22:30 +0100 |
| commit | 84958d131a29d80acea94dec5260b484556e73d0 (patch) | |
| tree | 2738af716dd989f9fb08fdb979dbea9bc6940fc4 /docs/tutorial/1-serialization.md | |
| parent | 9d8bce8f5b0915223f57d9fe3d4b63029cfc64c2 (diff) | |
| download | django-rest-framework-84958d131a29d80acea94dec5260b484556e73d0.tar.bz2 | |
Doc style tweaks
Diffstat (limited to 'docs/tutorial/1-serialization.md')
| -rw-r--r-- | docs/tutorial/1-serialization.md | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
