From 35036aee158c086a784b3a4a8a238f1f1ab6ddc3 Mon Sep 17 00:00:00 2001 From: ildoc Date: Thu, 25 Feb 2016 14:27:57 +0100 Subject: [PATCH] updated tutorial for django 1.9 --- docs/tutorial/1-serialization.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/tutorial/1-serialization.md b/docs/tutorial/1-serialization.md index 239d54204..4329df0ab 100644 --- a/docs/tutorial/1-serialization.md +++ b/docs/tutorial/1-serialization.md @@ -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. @@ -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[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')), ]