Fix indentation of code example in chapter 7 (#5329)

This commit is contained in:
Berker Peksag 2017-08-14 15:04:52 +03:00 committed by Tom Christie
parent be7657c672
commit 52e0f3ae08

View File

@ -36,15 +36,15 @@ 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
```python
from rest_framework.schemas import get_schema_view
schema_view = get_schema_view(title='Pastebin API')
schema_view = get_schema_view(title='Pastebin API')
urlpatterns = [
   url(r'^schema/$', schema_view),
...
]
urlpatterns = [
   url(r'^schema/$', schema_view),
...
]
```
If you visit the API root endpoint in a browser you should now see `corejson`