text: """
  Django settings for quizzie project.
  
  Generated by 'django-admin startproject' using Django 1.9.12.
  
  For more information on this file, see
  https://docs.djangoproject.com/en/1.9/topics/settings/
  
  For the full list of settings and their values, see
  https://docs.djangoproject.com/en/1.9/ref/settings/
  """
  
  import os
  from django.conf import settings
  
  from . import secrets
  
  # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
  BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
  
  redis_host = os.environ.get('REDIS_HOST', 'localhost')
  
  # Quick-start development settings - unsuitable for production
  # See https://docs.djangoproject.com/en/1.9/howto/deployment/checklist/
  
  # SECURITY WARNING: keep the secret key used in production secret!
  SECRET_KEY = 'dh9kw5s8@@1hq(zjsj8%p%i$n(!#35ryl_m+-j8!-!agor*mlx'
  
  # SECURITY WARNING: don't run with debug turned on in production!
  DEBUG = True
  
  ALLOWED_HOSTS = ['*']
  
  
  # Application definition
  
  INSTALLED_APPS = [
      'django.contrib.admin',
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.messages',
      'django.contrib.staticfiles',
      'game',
      'channels',
      'social_django'
  ]
  
  MIDDLEWARE_CLASSES = [
      'django.middleware.security.SecurityMiddleware',
      'django.contrib.sessions.middleware.SessionMiddleware',
      'django.middleware.common.CommonMiddleware',
      'django.middleware.csrf.CsrfViewMiddleware',
      'django.contrib.auth.middleware.AuthenticationMiddleware',
      'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
      'django.contrib.messages.middleware.MessageMiddleware',
      'django.middleware.clickjacking.XFrameOptionsMiddleware',
  ]
  
  ROOT_URLCONF = 'quizzie.urls'
  
  TEMPLATES = [
      {
          'BACKEND': 'django.template.backends.django.DjangoTemplates',
          'DIRS': [os.path.join(BASE_DIR, 'templates')],
          'APP_DIRS': True,
          'OPTIONS': {
              'context_processors': [
                  'django.template.context_processors.debug',
                  'django.template.context_processors.request',
                  'django.contrib.auth.context_processors.auth',
                  'django.contrib.messages.context_processors.messages',
                  'social_django.context_processors.backends',
                  'social_django.context_processors.login_redirect',
              ],
          },
      },
  ]
  
  AUTHENTICATION_BACKENDS = (
      'social_core.backends.google.GoogleOAuth2',  # for Google authentication
      'django.contrib.auth.backends.ModelBackend',
  )
  
  WSGI_APPLICATION = 'quizzie.wsgi.application'
  
  
  # Database
  # https://docs.djangoproject.com/en/1.9/ref/settings/#databases
  
  DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.sqlite3',
          'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
      }
  }
  
  # Channel layer definitions
  # http://channels.readthedocs.org/en/latest/deploying.html#setting-up-a-channel-backend
  CHANNEL_LAYERS = {
      "default": {
          # This example app uses the Redis channel layer implementation asgi_redis
          "BACKEND": "asgi_redis.RedisChannelLayer",
          "CONFIG": {
              "hosts": [(redis_host, 6379)],
          },
          # We will create it in a moment
          "ROUTING": "quizzie.routing.channel_routing",
      },
  }
  
  # Password validation
  # https://docs.djangoproject.com/en/1.9/ref/settings/#auth-password-validators
  
  AUTH_PASSWORD_VALIDATORS = [
      {
          'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
      },
      {
          'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
      },
      {
          'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
      },
      {
          'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
      },
  ]
  
  
  # Internationalization
  # https://docs.djangoproject.com/en/1.9/topics/i18n/
  
  LANGUAGE_CODE = 'en-us'
  
  TIME_ZONE = 'UTC'
  
  USE_I18N = True
  
  USE_L10N = True
  
  USE_TZ = True
  
  
  # Static files (CSS, JavaScript, Images)
  # https://docs.djangoproject.com/en/1.9/howto/static-files/
  
  STATIC_URL = '/static/'
  
  STATICFILES_DIRS = [
      os.path.join(BASE_DIR, "static"),
      '/var/www/static/',
  ]
  
  LOGIN_URL = 'login'
  
  LOGIN_REDIRECT_URL = '/'
  
  LOGOUT_REDIRECT_URL = "/"
  
  
  NOTIFY_USERS_ON_ENTER_OR_LEAVE_ROOMS = getattr(settings, 'NOTIFY_USERS_ON_ENTER_OR_LEAVE_ROOMS', True)
  
  MSG_TYPE_MESSAGE = 0  # For standard messages
  MSG_TYPE_WARNING = 1  # For yellow messages
  MSG_TYPE_ALERT = 2  # For red & dangerous alerts
  MSG_TYPE_MUTED = 3  # For just OK information that doesn't bother users
  MSG_TYPE_ENTER = 4  # For just OK information that doesn't bother users
  MSG_TYPE_LEAVE = 5  # For just OK information that doesn't bother users
  
  MESSAGE_TYPES_CHOICES = getattr(settings, 'MESSAGE_TYPES_CHOICES', (
      (MSG_TYPE_MESSAGE, 'MESSAGE'),
      (MSG_TYPE_WARNING, 'WARNING'),
      (MSG_TYPE_ALERT, 'ALERT'),
      (MSG_TYPE_MUTED, 'MUTED'),
      (MSG_TYPE_ENTER, 'ENTER'),
      (MSG_TYPE_LEAVE, 'LEAVE')))
  
  MESSAGE_TYPES_LIST = getattr(settings, 'MESSAGE_TYPES_LIST',
                               [MSG_TYPE_MESSAGE,
                                MSG_TYPE_WARNING,
                                MSG_TYPE_ALERT,
                                MSG_TYPE_MUTED,
                                MSG_TYPE_ENTER,
                                MSG_TYPE_LEAVE])
  
  SOCIAL_AUTH_GOOGLE_OAUTH2_KEY = secrets.MY_OAUTH_KEY
  SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = secrets.MY_OAUTH_SECRET
  