fix travis

This commit is contained in:
wh1te909 2019-10-23 08:20:17 +00:00
parent b921ab7f02
commit 8334e65557
1 changed files with 14 additions and 0 deletions

View File

@ -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'