Skip to content

Instantly share code, notes, and snippets.

@Angeloem
Created August 6, 2022 11:29
Show Gist options
  • Save Angeloem/1efb70f5702863f5831c6c91cf8c7bdd to your computer and use it in GitHub Desktop.
Save Angeloem/1efb70f5702863f5831c6c91cf8c7bdd to your computer and use it in GitHub Desktop.
rest framework settings
REST_FRAMEWORK = {
'DEFAULT_PERMISSION_CLASSES': (
'rest_framework.permissions.IsAuthenticated',
),
'DEFAULT_AUTHENTICATION_CLASSES': (
'budgeter_api.shared.auth.JWTAuthentication',
),
'DEFAULT_RENDERER_CLASSES': (
'rest_framework.renderers.JSONRenderer',
),
'DEFAULT_FILTER_BACKENDS': ['django_filters.rest_framework.DjangoFilterBackend']
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment