mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-02 19:40:13 +03:00
Add a section for configuring static files so the browsable API css will
load
This commit is contained in:
parent
3833f1d55f
commit
ac438177b8
|
@ -128,6 +128,16 @@ We'd also like to set a few global settings. We'd like to turn on pagination, a
|
||||||
'PAGINATE_BY': 10
|
'PAGINATE_BY': 10
|
||||||
}
|
}
|
||||||
|
|
||||||
|
In order for the browsable API to properly render you should also add the
|
||||||
|
following information into `tutorial/settings.py`
|
||||||
|
|
||||||
|
INSTALLED_APPS = (
|
||||||
|
...
|
||||||
|
'django.contrib.staticfiles',
|
||||||
|
)
|
||||||
|
|
||||||
|
STATIC_URL = '/static/'
|
||||||
|
|
||||||
Okay, we're done.
|
Okay, we're done.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
Loading…
Reference in New Issue
Block a user