Skip to content

Instantly share code, notes, and snippets.

@jurecuhalev
Created August 17, 2016 14:15
Show Gist options
  • Save jurecuhalev/b593d6d11e85848e8b74d119641dde21 to your computer and use it in GitHub Desktop.
Save jurecuhalev/b593d6d11e85848e8b74d119641dde21 to your computer and use it in GitHub Desktop.
REST_FRAMEWORK = {
'DEFAULT_PERMISSION_CLASSES': (
'rest_framework.permissions.IsAuthenticated',
),
'DEFAULT_AUTHENTICATION_CLASSES': (
'rest_framework.authentication.SessionAuthentication',
'rest_framework.authentication.BasicAuthentication',
'rest_framework_jwt.authentication.JSONWebTokenAuthentication',
'rest_framework.authentication.TokenAuthentication',
),
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment