Updating the Django version "runserver" output and enforcing code block styling

CHANGED the Django version run server output to “1.11”
ADDED “```” to a code block on line 44 of
“/tutorial/7-schemas-and-client-libraries/“ to enforce code wrap.
Perhaps, we might need to do this to all code blocks. I would be happy
to do that.
This commit is contained in:
Jimmy Gitonga 2017-04-28 18:08:54 +03:00
parent 80d0ee563a
commit 6e7c9594fe
2 changed files with 3 additions and 1 deletions

View File

@ -310,7 +310,7 @@ Quit out of the shell...
Validating models...
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/
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
view in our URL configuration.
```
from rest_framework.schemas import get_schema_view
schema_view = get_schema_view(title='Pastebin API')
@ -44,6 +45,7 @@ view in our URL configuration.
   url(r'^schema/$', schema_view),
...
]
```
If you visit the API root endpoint in a browser you should now see `corejson`
representation become available as an option.