text: """
  Django settings for thebeerhouse project.
  
  Generated by 'django-admin startproject' using Django 1.8.13.
  
  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/
  """
  
  import os
  from django.utils.translation import ugettext_lazy as _
  
  from oscar.defaults import *
  from .payment_settings import (
      PAYPAL_API_USERNAME, PAYPAL_API_PASSWORD, PAYPAL_API_SIGNATURE)
  
  # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
  
  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 = '6d0lw3pb(hij3b)f4-vi7&yp_+7&m6k5=ym$@(t=%=hwky=r@d'
  
  # SECURITY WARNING: don't run with debug turned on in production!
  DEBUG = True
  
  ALLOWED_HOSTS = []
  
  from oscar import get_core_apps  # noqa
  # Application definition
  
  INSTALLED_APPS = [
      'sslserver',
      'django.contrib.admin',
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.flatpages',
      'django.contrib.sessions',
      'django.contrib.sites',
      'django.contrib.messages',
      'django.contrib.staticfiles',
  
      # Minifies the JS and CSS into a single cached file
      'compressor',
  
      # More nice django-form styling and usability
      'widget_tweaks',
      'paypal',
  
  ] + get_core_apps()
  
  SITE_ID = 1
  
  MIDDLEWARE_CLASSES = (
      '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',
      'django.middleware.security.SecurityMiddleware',
  
      'oscar.apps.basket.middleware.BasketMiddleware',
      'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
  )
  
  AUTHENTICATION_BACKENDS = (
      'oscar.apps.customer.auth_backends.EmailBackend',
      'django.contrib.auth.backends.ModelBackend',
  )
  
  ROOT_URLCONF = 'thebeerhouse.urls'
  
  from oscar import OSCAR_MAIN_TEMPLATE_DIR  # noqa
  
  TEMPLATES = [
      {
          'BACKEND': 'django.template.backends.django.DjangoTemplates',
          'DIRS': [
              os.path.join(BASE_DIR, 'templates'),
              OSCAR_MAIN_TEMPLATE_DIR
          ],
          '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',
  
                  'oscar.apps.search.context_processors.search_form',
                  'oscar.apps.promotions.context_processors.promotions',
                  'oscar.apps.checkout.context_processors.checkout',
                  'oscar.apps.customer.notifications.context_processors.'
                  'notifications',
                  'oscar.core.context_processors.metadata',
              ],
          },
      },
  ]
  
  WSGI_APPLICATION = 'thebeerhouse.wsgi.application'
  
  
  # Database
  # https://docs.djangoproject.com/en/1.8/ref/settings/#databases
  
  DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.postgresql_psycopg2',
          'NAME': 'thebeerhouse',
          'USER': 'icebreaker',
          'PASSWORD': 'nFnvzdb2bDqZb6SVSbaH',
          'HOST': '',
          'PORT': '',
          'ATOMIC_REQUESTS': True,
      }
  }
  
  HAYSTACK_CONNECTIONS = {
      'default': {
          'ENGINE': 'haystack.backends.simple_backend.SimpleEngine',
      },
  }
  
  
  # 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
  
  OSCAR_DEFAULT_CURRENCY = 'USD'
  
  
  
  LOGGING = {
      'version': 1,
      'disable_existing_loggers': False,
      'formatters': {
          'verbose': {
              'format': '%(levelname)s %(asctime)s %(module)s %(process)d'
              ' %(thread)d %(message)s'
          },
      },
      'handlers': {
          'file': {
              'level': 'DEBUG',
              'class': 'logging.FileHandler',
              'filename': os.path.join(BASE_DIR, 'logs', 'debug.log'),
          },
          'console': {
              'level': 'INFO',
              'class': 'logging.StreamHandler',
              'formatter': 'verbose'
          },
      },
      'loggers': {
          'django': {
              'handlers': ['file', 'console'],
              'level': 'INFO',
              'propagate': True,
          },
          'paypal.express': {
              'handlers': ['file', 'console'],
              'level': 'INFO',
              'propagate': True,
          }
      },
  }
  
  
  OSCAR_DASHBOARD_NAVIGATION.append(
      {
          'label': _('PayPal'),
          'icon': 'icon-globe',
          'children': [
              {
                  'label': _('Express transactions'),
                  'url_name': 'paypal-express-list',
              },
          ]
      })
  
  OSCAR_SHOP_NAME = 'The Beer House'
  
  # Static files (CSS, JavaScript, Images)
  # https://docs.djangoproject.com/en/1.8/howto/static-files/
  
  STATIC_URL = '/static/'
  
  MEDIA_URL = '/media/'
  
  STATIC_ROOT = os.path.join(BASE_DIR, 'static')
  
  STATICFILES_DIRS = (
      os.path.join(BASE_DIR, 'assets'),
  )
  
  MEDIA_ROOT = os.path.join(BASE_DIR, 'public', 'media')
  