Created
October 11, 2017 14:27
-
-
Save neilbradley/7b08d1bf6ac0cb9643343c7c1d362f2a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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