We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da3995a commit a16e060Copy full SHA for a16e060
1 file changed
tutorial/settings.py
@@ -123,3 +123,11 @@
123
# https://docs.djangoproject.com/en/1.9/howto/static-files/
124
125
STATIC_URL = '/static/'
126
+
127
+REST_FRAMEWORK = {
128
+ # Use Django's standard `django.contrib.auth` permissions,
129
+ # or allow read-only access for unauthenticated users.
130
+ 'DEFAULT_PERMISSION_CLASSES': [
131
+ 'rest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly'
132
+ ]
133
+}
0 commit comments