Explorar o código

Fix: rest_framework authentication classes

wilitp %!s(int64=3) %!d(string=hai) anos
pai
achega
d4e7a3f6c2
Modificáronse 1 ficheiros con 6 adicións e 3 borrados
  1. 6 3
      app/preports/settings.py

+ 6 - 3
app/preports/settings.py

@@ -131,9 +131,12 @@ STATIC_URL = 'static/'
 
 DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
 
-DEFAULT_AUTHENTICATION_CLASSES = [
-    'rest_framework.authentication.BasicAuthentication'
-]
+
+REST_FRAMEWORK = {
+    'DEFAULT_AUTHENTICATION_CLASSES': [
+        'rest_framework.authentication.BasicAuthentication',
+    ]
+}
 
 CLIMA_URL = os.getenv("CLIMA_URL")