diff --git a/back_latienda/settings/development.py b/back_latienda/settings/development.py index 56c8279..af1f405 100644 --- a/back_latienda/settings/development.py +++ b/back_latienda/settings/development.py @@ -51,3 +51,7 @@ SIMPLE_JWT = { } EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' + +# disable web interface for REST backend + +# REST_FRAMEWORK['DEFAULT_RENDERER_CLASSES'] = ('rest_framework.renderers.JSONRenderer',) diff --git a/back_latienda/settings/production.py b/back_latienda/settings/production.py index 5dbf4c2..46fb796 100644 --- a/back_latienda/settings/production.py +++ b/back_latienda/settings/production.py @@ -80,3 +80,8 @@ SIMPLE_JWT = { 'SLIDING_TOKEN_REFRESH_LIFETIME': timedelta(days=1), } +# disable web interface for REST backend + +REST_FRAMEWORK['DEFAULT_RENDERER_CLASSES'] = ('rest_framework.renderers.JSONRenderer',) + +