Merge pull request #5105 from Afrowave/master

Updating the Django version "runserver" output and enforcing code block styling
This commit is contained in:
Xavier Ordoquy 2017-04-28 15:30:31 +00:00 committed by GitHub
commit 0e0404ecb1
2 changed files with 3 additions and 1 deletions

View File

@ -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.

View File

@ -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.
   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.