chore: Change default renderer classes
This commit is contained in:
parent
c3993d39e7
commit
e198466d8a
@ -143,6 +143,9 @@ REST_FRAMEWORK = {
|
||||
"DEFAULT_PAGINATION_CLASS": "rest_framework.pagination.PageNumberPagination",
|
||||
"PAGE_SIZE": 20,
|
||||
"DATETIME_FORMAT": "%m/%d %H:%M",
|
||||
"DEFAULT_RENDERER_CLASSES": [
|
||||
"rest_framework.renderers.JSONRenderer",
|
||||
],
|
||||
}
|
||||
|
||||
SESSION_COOKIE_HTTPONLY = False
|
||||
|
@ -28,3 +28,10 @@ INSTALLED_APPS += ["debug_toolbar"]
|
||||
MIDDLEWARE += ["debug_toolbar.middleware.DebugToolbarMiddleware"]
|
||||
|
||||
INTERNAL_IPS = ["127.0.0.1"]
|
||||
|
||||
# renderer class
|
||||
|
||||
REST_FRAMEWORK["DEFAULT_RENDERER_CLASSES"] = [
|
||||
"rest_framework.renderers.JSONRenderer",
|
||||
"rest_framework.renderers.BrowsableAPIRenderer",
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user