added rest framework conf
This commit is contained in:
parent
6795a4c35c
commit
54aa8f474e
1 changed files with 8 additions and 0 deletions
|
@ -65,6 +65,7 @@ INSTALLED_APPS = [
|
||||||
'django.contrib.staticfiles',
|
'django.contrib.staticfiles',
|
||||||
'bootstrap3',
|
'bootstrap3',
|
||||||
'dal',
|
'dal',
|
||||||
|
'rest_framework'
|
||||||
]
|
]
|
||||||
|
|
||||||
MIDDLEWARE = [
|
MIDDLEWARE = [
|
||||||
|
@ -208,3 +209,10 @@ if config('ENABLE_DEBUG_LOG', default=False, cast=bool):
|
||||||
set_library_log_detail_level, OFF, BASIC, NETWORK, EXTENDED
|
set_library_log_detail_level, OFF, BASIC, NETWORK, EXTENDED
|
||||||
)
|
)
|
||||||
set_library_log_detail_level(BASIC)
|
set_library_log_detail_level(BASIC)
|
||||||
|
|
||||||
|
|
||||||
|
REST_FRAMEWORK = {
|
||||||
|
'DEFAULT_RENDERER_CLASSES': (
|
||||||
|
'rest_framework.renderers.JSONRenderer',
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue