diff options
| author | Pascal Borreli | 2013-05-28 15:09:23 +0100 |
|---|---|---|
| committer | Pascal Borreli | 2013-05-28 15:09:23 +0100 |
| commit | 8f35ac4f93c608eaced3f48a46e8922104e09182 (patch) | |
| tree | 55b394b57fc7b0e40283d89dc23dd0b41dfc074d /docs/tutorial | |
| parent | 7123f0b1e6b29778c41476341bd2370f60c279fa (diff) | |
| download | django-rest-framework-8f35ac4f93c608eaced3f48a46e8922104e09182.tar.bz2 | |
Fixed typos
Diffstat (limited to 'docs/tutorial')
| -rw-r--r-- | docs/tutorial/4-authentication-and-permissions.md | 4 | ||||
| -rw-r--r-- | docs/tutorial/quickstart.md | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/docs/tutorial/4-authentication-and-permissions.md b/docs/tutorial/4-authentication-and-permissions.md index f6c3efb0..1c127fac 100644 --- a/docs/tutorial/4-authentication-and-permissions.md +++ b/docs/tutorial/4-authentication-and-permissions.md @@ -17,7 +17,7 @@ Add the following two fields to the model. owner = models.ForeignKey('auth.User', related_name='snippets') highlighted = models.TextField() -We'd also need to make sure that when the model is saved, that we populate the highlighted field, using the `pygments` code higlighting library. +We'd also need to make sure that when the model is saved, that we populate the highlighted field, using the `pygments` code highlighting library. We'll need some extra imports: @@ -137,7 +137,7 @@ And, at the end of the file, add a pattern to include the login and logout views The `r'^api-auth/'` part of pattern can actually be whatever URL you want to use. The only restriction is that the included urls must use the `'rest_framework'` namespace. -Now if you open up the browser again and refresh the page you'll see a 'Login' link in the top right of the page. If you log in as one of the users you created earier, you'll be able to create code snippets again. +Now if you open up the browser again and refresh the page you'll see a 'Login' link in the top right of the page. If you log in as one of the users you created earlier, you'll be able to create code snippets again. Once you've created a few code snippets, navigate to the '/users/' endpoint, and notice that the representation includes a list of the snippet pks that are associated with each user, in each user's 'snippets' field. diff --git a/docs/tutorial/quickstart.md b/docs/tutorial/quickstart.md index c41cb63f..a80e31c0 100644 --- a/docs/tutorial/quickstart.md +++ b/docs/tutorial/quickstart.md @@ -10,7 +10,7 @@ Create a new Django project named `tutorial`, then start a new app called `quick django-admin.py startproject tutorial cd tutorial - # Create a virtualenv to isolate our package dependancies locally + # Create a virtualenv to isolate our package dependencies locally virtualenv env source env/bin/activate @@ -36,7 +36,7 @@ Next you'll need to get a database set up and synced. If you just want to use S The run `syncdb` like so: - python manange.py syncdb + python manage.py syncdb Once you've set up a database and got everything synced and ready to go, open up the app's directory and we'll get coding... |
