Commit 0e0404ec by Xavier Ordoquy Committed by GitHub

Merge pull request #5105 from Afrowave/master

Updating the Django version "runserver" output and enforcing code block styling
parents 80d0ee56 6e7c9594
...@@ -310,7 +310,7 @@ Quit out of the shell... ...@@ -310,7 +310,7 @@ Quit out of the shell...
Validating models... Validating models...
0 errors found 0 errors found
Django version 1.8.3, using settings 'tutorial.settings' Django version 1.11, using settings 'tutorial.settings'
Development server is running at http://127.0.0.1:8000/ Development server is running at http://127.0.0.1:8000/
Quit the server with CONTROL-C. Quit the server with CONTROL-C.
......
...@@ -36,6 +36,7 @@ API schema. ...@@ -36,6 +36,7 @@ API schema.
We can now include a schema for our API, by including an autogenerated schema We can now include a schema for our API, by including an autogenerated schema
view in our URL configuration. view in our URL configuration.
```
from rest_framework.schemas import get_schema_view from rest_framework.schemas import get_schema_view
schema_view = get_schema_view(title='Pastebin API') schema_view = get_schema_view(title='Pastebin API')
...@@ -44,6 +45,7 @@ view in our URL configuration. ...@@ -44,6 +45,7 @@ view in our URL configuration.
   url(r'^schema/$', schema_view),    url(r'^schema/$', schema_view),
... ...
] ]
```
If you visit the API root endpoint in a browser you should now see `corejson` If you visit the API root endpoint in a browser you should now see `corejson`
representation become available as an option. representation become available as an option.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment