Skip to content

Commit

Permalink
Merge pull request #3965 from ildoc/master
Browse files Browse the repository at this point in the history
updated tutorial for django 1.9
  • Loading branch information
tomchristie committed Feb 25, 2016
2 parents 82245be + 35036ae commit a15e46a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/tutorial/1-serialization.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ We'll need to add our new `snippets` app and the `rest_framework` app to `INSTAL
INSTALLED_APPS = (
...
'rest_framework',
'snippets',
'snippets.apps.SnippetsConfig',
)

Okay, we're ready to roll.
Expand Down Expand Up @@ -293,11 +293,11 @@ Finally we need to wire these views up. Create the `snippets/urls.py` file:
url(r'^snippets/$', views.snippet_list),
url(r'^snippets/(?P<pk>[0-9]+)/$', views.snippet_detail),
]

We also need to wire up the root urlconf, in the `tutorial/urls.py` file, to include our snippet app's URLs.

from django.conf.urls import url, include

urlpatterns = [
url(r'^', include('snippets.urls')),
]
Expand Down

0 comments on commit a15e46a

Please sign in to comment.