Skip to content

Commit ddf260a

Browse files
authored
Update settings.py
1 parent b5a77a5 commit ddf260a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

MailingService/settings.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
'django.contrib.sessions',
3636
'django.contrib.messages',
3737
'django.contrib.staticfiles',
38+
'rest_framework',
3839
'mail.apps.MailConfig',
3940
]
4041

@@ -67,6 +68,15 @@
6768
},
6869
]
6970

71+
REST_FRAMEWORK = {
72+
'DEFAULT_FILTER_BACKENDS': [
73+
'django_filters.rest_framework.DjangoFilterBackend'
74+
],
75+
'DEFAULT_AUTHENTICATION_CLASSES': [
76+
'rest_framework_simplejwt.authentication.JWTAuthentication',
77+
],
78+
}
79+
7080
WSGI_APPLICATION = 'MailingService.wsgi.application'
7181

7282
# Database

0 commit comments

Comments
 (0)