Created
October 25, 2018 16:16
-
-
Save yerkbn/1cdf332d85848813e5eb7c61adea20b4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REST_FRAMEWORK = { | |
'DEFAULT_AUTHENTICATION_CLASSES': ( | |
'users.authentication.ExpiringTokenAuthentication', # custom authentication class | |
), | |
'DEFAULT_PERMISSION_CLASSES': ( | |
'rest_framework.permissions.IsAuthenticated', | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment