Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-rest-framework
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
django-rest-framework
Commits
35036aee
Commit
35036aee
authored
Feb 25, 2016
by
ildoc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated tutorial for django 1.9
parent
450c7647
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
docs/tutorial/1-serialization.md
+4
-4
No files found.
docs/tutorial/1-serialization.md
View file @
35036aee
...
@@ -45,7 +45,7 @@ We'll need to add our new `snippets` app and the `rest_framework` app to `INSTAL
...
@@ -45,7 +45,7 @@ We'll need to add our new `snippets` app and the `rest_framework` app to `INSTAL
INSTALLED_APPS = (
INSTALLED_APPS = (
...
...
'rest_framework',
'rest_framework',
'snippets',
'snippets
.apps.SnippetsConfig
',
)
)
Okay, we're ready to roll.
Okay, we're ready to roll.
...
@@ -293,11 +293,11 @@ Finally we need to wire these views up. Create the `snippets/urls.py` file:
...
@@ -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/$', views.snippet_list),
url(r'^snippets/(?P<pk>[0-9]+)/$', views.snippet_detail),
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.
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
from django.conf.urls import url, include
urlpatterns = [
urlpatterns = [
url(r'^', include('snippets.urls')),
url(r'^', include('snippets.urls')),
]
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment