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 = { | |
# Use hyperlinked styles by default. | |
# Only used if the `serializer_class` attribute is not set on a view. | |
'DEFAULT_MODEL_SERIALIZER_CLASS': 'rest_framework.serializers.HyperlinkedModelSerializer', | |
# Use Django's standard `django.contrib.auth` permissions, | |
# or allow read-only access for unauthenticated users. | |
'DEFAULT_PERMISSION_CLASSES': ['rest_framework.permissions.IsAuthenticated'], | |
'DEFAULT_AUTHENTICATION_CLASSES': ( |