mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-02 11:30:12 +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
|
@ -127,6 +127,16 @@ We'd also like to set a few global settings. We'd like to turn on pagination, a
|
|||
'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.IsAdminUser',),
|
||||
'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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user