old_contents: from __future__ import absolute_import
  import os
  
  
  DEBUG = True
  
  BASE_DIR = os.path.dirname(__file__)
  
  DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.sqlite3',
          'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
      }
  }
  
  EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
  
  AUTH_PASSWORD_VALIDATORS = [{'NAME': 'testapp.validators.Is666'}]
  
  SECRET_KEY = '_'
  
  MIDDLEWARE = [
      'django.contrib.sessions.middleware.SessionMiddleware',
  ]
  
  INSTALLED_APPS = (
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.staticfiles',
  
      'templated_mail',
      'rest_framework',
      'rest_framework.authtoken',
      'djoser',
      'social_django',
  
      'testapp',
  )
  
  STATIC_URL = '/static/'
  
  REST_FRAMEWORK = {
      'DEFAULT_PERMISSION_CLASSES': (
          'rest_framework.permissions.IsAuthenticated',
      ),
      'DEFAULT_AUTHENTICATION_CLASSES': (
          'rest_framework_jwt.authentication.JSONWebTokenAuthentication',
          'rest_framework.authentication.TokenAuthentication',
      ),
  }
  
  ROOT_URLCONF = 'urls'
  
  TEMPLATES = [
      {
          'BACKEND': 'django.template.backends.django.DjangoTemplates',
          'APP_DIRS': True,
      },
  ]
  
  AUTHENTICATION_BACKENDS = (
      'djoser.social.backends.facebook.FacebookOAuth2Override',
      'social_core.backends.google.GoogleOAuth2',
  )
  
  SOCIAL_AUTH_FACEBOOK_KEY = 'XXXXXXXXXXXX'
  SOCIAL_AUTH_FACEBOOK_SECRET = 'XXXXXXXXXXXXXXX'
  
  SOCIAL_AUTH_FACEBOOK_SCOPE = ['email']
  SOCIAL_AUTH_FACEBOOK_PROFILE_EXTRA_PARAMS = {
      'fields': 'id, name, email'
  }
  
  DJOSER = {
      'SEND_ACTIVATION_EMAIL': False,
      'PASSWORD_RESET_CONFIRM_URL': '#/password/reset/confirm/{uid}/{token}',
      'ACTIVATION_URL': '#/activate/{uid}/{token}',
  }
  
  JWT_AUTH = {
      'JWT_ALLOW_REFRESH': True,
  }
  
new_contents: from __future__ import absolute_import
  import os
  
  
  DEBUG = True
  
  BASE_DIR = os.path.dirname(__file__)
  
  DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.sqlite3',
          'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
      }
  }
  
  EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
  
  AUTH_PASSWORD_VALIDATORS = [{'NAME': 'testapp.validators.Is666'}]
  
  SECRET_KEY = '_'
  
  MIDDLEWARE = [
      'django.contrib.sessions.middleware.SessionMiddleware',
  ]
  
  INSTALLED_APPS = (
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.staticfiles',
  
      'templated_mail',
      'rest_framework',
      'rest_framework.authtoken',
      'djoser',
      'social_django',
  
      'testapp',
  )
  
  STATIC_URL = '/static/'
  
  REST_FRAMEWORK = {
      'DEFAULT_PERMISSION_CLASSES': (
          'rest_framework.permissions.IsAuthenticated',
      ),
      'DEFAULT_AUTHENTICATION_CLASSES': (
          'rest_framework_jwt.authentication.JSONWebTokenAuthentication',
          'rest_framework.authentication.TokenAuthentication',
      ),
  }
  
  ROOT_URLCONF = 'urls'
  
  TEMPLATES = [
      {
          'BACKEND': 'django.template.backends.django.DjangoTemplates',
          'APP_DIRS': True,
      },
  ]
  
  AUTHENTICATION_BACKENDS = [
      'django.contrib.auth.backends.ModelBackend',
      'djoser.social.backends.facebook.FacebookOAuth2Override',
      'social_core.backends.google.GoogleOAuth2',
  ]
  
  SOCIAL_AUTH_FACEBOOK_KEY = 'XXXXXXXXXXXX'
  SOCIAL_AUTH_FACEBOOK_SECRET = 'XXXXXXXXXXXXXXX'
  
  SOCIAL_AUTH_FACEBOOK_SCOPE = ['email']
  SOCIAL_AUTH_FACEBOOK_PROFILE_EXTRA_PARAMS = {
      'fields': 'id, name, email'
  }
  
  DJOSER = {
      'SEND_ACTIVATION_EMAIL': False,
      'PASSWORD_RESET_CONFIRM_URL': '#/password/reset/confirm/{uid}/{token}',
      'ACTIVATION_URL': '#/activate/{uid}/{token}',
  }
  
  JWT_AUTH = {
      'JWT_ALLOW_REFRESH': True,
  }
  
subject: Add ModelBackend to test settings auth backends