text: """
  Django settings for oecloud_dashboard project.
  
  Generated by 'django-admin startproject' using Django 1.8.
  
  For more information on this file, see
  https://docs.djangoproject.com/en/1.8/topics/settings/
  
  For the full list of settings and their values, see
  https://docs.djangoproject.com/en/1.8/ref/settings/
  """
  
  # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
  import os
  import sys
  import django
  from local_settings import *
  BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
  
  
  # Quick-start development settings - unsuitable for production
  # See https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/
  
  # SECURITY WARNING: keep the secret key used in production secret!
  SECRET_KEY = '_m#^f+gh32j7_fdfs#43t#59$2@nm5$vedgcm25ar$xkb9sk-o'
  
  # SECURITY WARNING: don't run with debug turned on in production!
  DEBUG = True
  
  ALLOWED_HOSTS = ['*']
  
  
  # Application definition
  
  INSTALLED_APPS = [
      'django.contrib.admin',
      'django.contrib.contenttypes',
      'django.contrib.auth',
      'django.contrib.sessions',
      'django.contrib.messages',
      'django.contrib.staticfiles',
      'django.contrib.humanize',
      'django_pyscss',
      # 'openstack_dashboard.django_pyscss_fix',
      # 'compressor',
      # 'horizon',
      'openstack_auth',
      'oecloud_dashboard',
      'utils',
      
  ]
  TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
  AUTHENTICATION_BACKENDS = ('openstack_auth.backend.KeystoneBackend',)
  AUTHENTICATION_URLS = ['openstack_auth.urls']
  MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
  
  SESSION_ENGINE = 'django.contrib.sessions.backends.signed_cookies'
  SESSION_COOKIE_HTTPONLY = True
  SESSION_EXPIRE_AT_BROWSER_CLOSE = True
  SESSION_COOKIE_SECURE = False
  SESSION_TIMEOUT = 1800
  # A token can be near the end of validity when a page starts loading, and
  # invalid during the rendering which can cause errors when a page load.
  # TOKEN_TIMEOUT_MARGIN defines a time in seconds we retrieve from token
  # validity to avoid this issue. You can adjust this time depending on the
  # performance of the infrastructure.
  TOKEN_TIMEOUT_MARGIN = 10
  
  # When using cookie-based sessions, log error when the session cookie exceeds
  # the following size (common browsers drop cookies above a certain size):
  SESSION_COOKIE_MAX_SIZE = 4093
  
  # when doing upgrades, it may be wise to stick to PickleSerializer
  # NOTE(berendt): Check during the K-cycle if this variable can be removed.
  #                https://bugs.launchpad.net/horizon/+bug/1349463
  SESSION_SERIALIZER = 'django.contrib.sessions.serializers.PickleSerializer'
  
  MIDDLEWARE_CLASSES = (
      'django.contrib.sessions.middleware.SessionMiddleware',
      'django.middleware.common.CommonMiddleware',
      'django.middleware.csrf.CsrfViewMiddleware',
      'django.contrib.auth.middleware.AuthenticationMiddleware',
      'django.contrib.messages.middleware.MessageMiddleware',
      'django.middleware.clickjacking.XFrameOptionsMiddleware',
      'utils.middleware.JsonResponseMiddleware',
  )
  if django.VERSION >= (1, 8, 0):
      MIDDLEWARE_CLASSES += (
          'django.contrib.auth.middleware.SessionAuthenticationMiddleware',)
  else:
      MIDDLEWARE_CLASSES += ('django.middleware.doc.XViewMiddleware',)
  ROOT_URLCONF = 'oecloud_dashboard.urls'
  
  TEMPLATES = [
      {
          'BACKEND': 'django.template.backends.django.DjangoTemplates',
          'DIRS': ['',
              os.path.join(BASE_DIR, 'templates'),
              'django.template.loaders.filesystem.Loader',],
          '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',
              ],
          },
      },
  ]
  
  TEMPLATE_LOADERS = (
      'django.template.loaders.filesystem.Loader',
      'django.template.loaders.app_directories.Loader',
      'horizon.loaders.TemplateLoader',
  )
  
  TEMPLATE_DIRS = (
      os.path.join(BASE_DIR, 'templates'),
  )
  WSGI_APPLICATION = 'oecloud_dashboard.wsgi.application'
  
  
  # Database
  # https://docs.djangoproject.com/en/1.8/ref/settings/#databases
  
  DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.mysql',
          'NAME': DATABASE_NAME,
          'HOST': DATABASE_HOST,
          'PORT': DATABASE_PORT,
          'USER': DATABASE_USER,
          'PASSWORD': DATABASE_PASS,
      }
  }
  
  
  # Internationalization
  # https://docs.djangoproject.com/en/1.8/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.8/howto/static-files/
  
  
  STATIC_URL = '/static/'
  if DEBUG:
      STATICFILES_DIRS = ('', os.path.join(BASE_DIR, 'static'))
  else:
      STATIC_ROOT = os.path.join(BASE_DIR, 'static')
  
  