added rest framework conf

This commit is contained in:
wcolmenares 2019-05-05 17:16:14 -04:00
parent 6795a4c35c
commit 54aa8f474e

View file

@ -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',
)
}