Skip to content

Instantly share code, notes, and snippets.

@neilbradley
Created October 11, 2017 14:27
Show Gist options
  • Save neilbradley/7b08d1bf6ac0cb9643343c7c1d362f2a to your computer and use it in GitHub Desktop.
Save neilbradley/7b08d1bf6ac0cb9643343c7c1d362f2a to your computer and use it in GitHub Desktop.
import sys, os
# add the site specific path, e.g. /uk/
COUNTRY_SITE_BASE = os.path.dirname(__file__)
sys.path.append(COUNTRY_SITE_BASE)
LOG_FILE = os.path.join(COUNTRY_SITE_BASE, "logs/site_log.txt")
COUNTRY = 'au'
from base_settings import *
SITE_INSTANCE = 'live'
USE_SSL = True
CAMPAIGN = "main_site"
DBS = (COUNTRY,'uk','au') #the first item is the 'default'
DATABASES = build_database_dict(DBS, DB_ENGINE, DB_USERNAME, DB_PASSWORD, SITE_INSTANCE)
if 'LOCAL-DEV-SERVER' in os.environ:
HOST_NAME = "localhost:8000"
else:
HOST_NAME = "dev-%s.domain.tld" % COUNTRY
HOST_NAME = ''
SSL_PREFIX = 'https://' if USE_SSL else 'http://'
#MEDIA_URL_SSL = '%s%s' % (SSL_PREFIX,HOST_NAME)
MEDIA_URL = '/media/'
DEBUG = True
TEMPLATE_DEBUG = False
CACHE_BACKEND = 'dummy://'
HAS_SHOP = True
EWAY_USERNAME = ''
EWAY_PASSWORD = ''
EWAY_API_KEY = ''
EWAY_SANDBOX = False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment