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'