From 8334e655571e026d1f7eb252aaf407dae99cae18 Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Wed, 23 Oct 2019 08:20:17 +0000 Subject: [PATCH] fix travis --- api/djangormm/djangormm/settings.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/api/djangormm/djangormm/settings.py b/api/djangormm/djangormm/settings.py index 4bfa0c57..ef869141 100644 --- a/api/djangormm/djangormm/settings.py +++ b/api/djangormm/djangormm/settings.py @@ -127,6 +127,20 @@ if 'TRAVIS' in os.environ: } } + REST_FRAMEWORK = { + 'DATETIME_FORMAT': "%b-%d-%Y - %H:%M", + + 'DEFAULT_PERMISSION_CLASSES': ( + 'rest_framework.permissions.IsAuthenticated', + ), + 'DEFAULT_AUTHENTICATION_CLASSES': ( + 'knox.auth.TokenAuthentication', + ), + 'DEFAULT_RENDERER_CLASSES': ( + 'rest_framework.renderers.JSONRenderer', + ) + } + DEBUG = True SECRET_KEY = 'abcdefghijklmnoptravis123456789'