Skip to content

Instantly share code, notes, and snippets.

@delterr
delterr / settings.py
Last active November 28, 2019 09:28
DRF basic setup
# Set up for DRF
REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': (
'rest_framework.authentication.SessionAuthentication', # << Sets up default Authentication
),
'DEFAULT_PERMISSION_CLASSES': (
'rest_framework.permissions.IsAuthenticatedOrReadOnly', # << Sets up default permissions for authenticated and read-only users
)
}