Skip to content

Commit

Permalink
Improve settings for Django REST API.
Browse files Browse the repository at this point in the history
  • Loading branch information
nmanovic committed Jan 14, 2019
1 parent 326fc98 commit 18b6ffb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cvat/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,11 @@ def generate_ssh_keys():

REST_FRAMEWORK = {
'DEFAULT_PERMISSION_CLASSES': [
'rest_framework.permissions.IsAuthenticated'
]
'rest_framework.permissions.IsAuthenticated',
],
'DEFAULT_VERSIONING_CLASS':
'rest_framework.versioning.URLPathVersioning',
'ALLOWED_VERSIONS': ('v1', ),
}

if 'yes' == os.environ.get('TF_ANNOTATION', 'no'):
Expand Down

0 comments on commit 18b6ffb

Please sign in to comment.