aboutsummaryrefslogtreecommitdiffstats
path: root/docs/tutorial/6-resource-orientated-projects.md
diff options
context:
space:
mode:
authorTom Christie2012-10-03 09:46:12 +0100
committerTom Christie2012-10-03 09:46:12 +0100
commitd8b05201edde0dd3b22d3b57ebeb04a2ed533b95 (patch)
tree56ffc76eddfa3fc07da832f98d605767755d8493 /docs/tutorial/6-resource-orientated-projects.md
parent1a05942166abfc68f83caea535aa44733b1e37a9 (diff)
parent637bfa0f8f4f5be4b877109bd744aa66718ececc (diff)
downloaddjango-rest-framework-d8b05201edde0dd3b22d3b57ebeb04a2ed533b95.tar.bz2
Merge branch 'restframework2' of https://github.com/tomchristie/django-rest-framework into restframework2
Diffstat (limited to 'docs/tutorial/6-resource-orientated-projects.md')
-rw-r--r--docs/tutorial/6-resource-orientated-projects.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/tutorial/6-resource-orientated-projects.md b/docs/tutorial/6-resource-orientated-projects.md
index 3c3e7fed..e7190a77 100644
--- a/docs/tutorial/6-resource-orientated-projects.md
+++ b/docs/tutorial/6-resource-orientated-projects.md
@@ -4,8 +4,8 @@ Resource classes are just View classes that don't have any handler methods bound
This allows us to:
-* Encapsulate common behaviour accross a class of views, in a single Resource class.
-* Seperate out the actions of a Resource from the specfics of how those actions should be bound to a particular set of URLs.
+* Encapsulate common behaviour across a class of views, in a single Resource class.
+* Separate out the actions of a Resource from the specfics of how those actions should be bound to a particular set of URLs.
## Refactoring to use Resources, not Views
@@ -59,7 +59,7 @@ Right now that hasn't really saved us a lot of code. However, now that we're us
## Trade-offs between views vs resources.
-Writing resource-orientated code can be a good thing. It helps ensure that URL conventions will be consistent across your APIs, and minimises the amount of code you need to write.
+Writing resource-oriented code can be a good thing. It helps ensure that URL conventions will be consistent across your APIs, and minimises the amount of code you need to write.
The trade-off is that the behaviour is less explict. It can be more difficult to determine what code path is being followed, or where to override some behaviour.