Exemplo n.º 1
0
AWS_S3_URL = AWS_S3_URLS['dev']

# Nets test environment configuration
NETS_REGISTER_URL = "https://test.epayment.nets.eu/Netaxept/Register.aspx"
NETS_TERMINAL_URL = "https://test.epayment.nets.eu/Terminal/default.aspx"
NETS_PROCESS_URL = "https://test.epayment.nets.eu/Netaxept/Process.aspx"
NETS_QUERY_URL = "https://test.epayment.nets.eu/Netaxept/Query.aspx"
NETS_TOKEN = secrets['NETS_TOKEN_TEST']

# Unset DIBS settings, consider replacing with test values
DIBS_MERCHANT_ID = 0
DIBS_HMAC_KEY = ""

# Stripe test environment tokens
STRIPE_TOKEN = STRIPE['tokens']['test']

# Raven DSN
RAVEN_CONFIG['dsn'] = secrets.get('RAVEN_DSN_STAGING')

#
# Custom settings
#

# Apply Turbasen dev environment
import turbasen
turbasen.configure(ENDPOINT_URL='https://dev.nasjonalturbase.no/')

# Focus web services for test server
FOCUS_WSDL_URL = secrets['FOCUS_WSDL_URL_TEST']
FOCUS_WSDL_TOKEN = secrets['FOCUS_WSDL_TOKEN_TEST']
Exemplo n.º 2
0
STATIC_URL = '/static/'


TIME_ZONE = 'Europe/Oslo'
# See http://www.i18nguy.com/unicode/language-identifiers.html
LANGUAGE_CODE = 'en'
USE_I18N = True
USE_L10N = True
LOCALE_PATHS = (
    "./locale",
)

# Relay emails through AWS SES
EMAIL_HOST = 'email-smtp.eu-west-1.amazonaws.com'
EMAIL_PORT = 587
EMAIL_HOST_USER = secrets.get('EMAIL_HOST_USER')
EMAIL_HOST_PASSWORD = secrets.get('EMAIL_HOST_PASSWORD')
EMAIL_USE_TLS = True
DEFAULT_FROM_EMAIL = 'Den Norske Turistforening <*****@*****.**>'
SERVER_EMAIL = 'DNT Django <*****@*****.**>'  # not currently in use

# Security settings
# Note that many of these settings are redundant because their effect is
# implemented directly in the reverse proxy. However they are still included
# here for explicity (and to satisfy Django's check command).
# Allow SECRET_KEY_PROD to be unset if it's overwritten by staging/dev
# configurations. The app will fail to start without the SECRET_KEY.
SECRET_KEY = secrets.get('SECRET_KEY_PROD')
ALLOWED_HOSTS = SITE_DOMAINS
SECURE_SSL_REDIRECT = True
SESSION_COOKIE_SECURE = True
Exemplo n.º 3
0
    # 'debug_panel.middleware.DebugPanelMiddleware',
) + MIDDLEWARE_CLASSES

TEMPLATES[0]['OPTIONS']['context_processors'] = [
    'django.template.context_processors.debug',
] + TEMPLATES[0]['OPTIONS']['context_processors']

# Redirect default database to the local postgres service
DATABASES['default']['NAME'] = 'sherpa'
DATABASES['default']['USER'] = '******'
DATABASES['default']['PASSWORD'] = None
DATABASES['default']['HOST'] = 'postgres'
DATABASES['default']['PORT'] = 5432

# Redirect Focus to test database
DATABASES['focus']['USER'] = secrets.get('DATABASES_FOCUS_USER_TEST', '')
DATABASES['focus']['PASSWORD'] = secrets.get('DATABASES_FOCUS_PASSWORD_TEST', '')
DATABASES['focus']['HOST'] = secrets.get('DATABASES_FOCUS_HOST_TEST', '')

#
# Third party settings
#

# Override the S3 bucket to the development clone
AWS_S3_BUCKET = AWS_S3_BUCKETS['dev']
AWS_S3_URL = AWS_S3_URLS['dev']

# Nets test environment URLs
NETS_REGISTER_URL = "https://test.epayment.nets.eu/Netaxept/Register.aspx"
NETS_TERMINAL_URL = "https://test.epayment.nets.eu/Terminal/default.aspx"
NETS_PROCESS_URL = "https://test.epayment.nets.eu/Netaxept/Process.aspx"
Exemplo n.º 4
0
}

#
# Third party settings
#

# Override the S3 bucket to the development clone
AWS_S3_BUCKET = AWS_S3_BUCKETS['dev']
AWS_S3_URL = AWS_S3_URLS['dev']

# Nets test environment URLs
NETS_REGISTER_URL = "https://test.epayment.nets.eu/Netaxept/Register.aspx"
NETS_TERMINAL_URL = "https://test.epayment.nets.eu/Terminal/default.aspx"
NETS_PROCESS_URL = "https://test.epayment.nets.eu/Netaxept/Process.aspx"
NETS_QUERY_URL = "https://test.epayment.nets.eu/Netaxept/Query.aspx"
NETS_TOKEN = secrets.get('NETS_TOKEN_TEST')

# Stripe test environment tokens
STRIPE_TOKEN = STRIPE['tokens']['test']

# Deactivate Raven logging to Sentry
RAVEN_CONFIG = {'dsn': None}

DEBUG_TOOLBAR_CONFIG = {
    # Always show the toolbar
    'SHOW_TOOLBAR_CALLBACK': lambda request: True,
    'HIDE_DJANGO_SQL': False,
    'DISABLE_PANELS': (
        'debug_toolbar.panels.versions.VersionsPanel',
        'debug_toolbar.panels.settings.SettingsPanel',
        'debug_toolbar.panels.profiling.ProfilingPanel',
Exemplo n.º 5
0
STATIC_HOSTNAME = ''
STATIC_PATH = '/static/'

TIME_ZONE = 'Europe/Oslo'
# See http://www.i18nguy.com/unicode/language-identifiers.html
LANGUAGE_CODE = 'nb' # not currently in use (replaced by `core.models.Site.language_code`)
USE_I18N = True
USE_L10N = True
LOCALE_PATHS = (
    "./locale",
)

# Relay emails through AWS SES
EMAIL_HOST = 'email-smtp.eu-west-1.amazonaws.com'
EMAIL_PORT = 587
EMAIL_HOST_USER = secrets.get('EMAIL_HOST_USER')
EMAIL_HOST_PASSWORD = secrets.get('EMAIL_HOST_PASSWORD')
EMAIL_USE_TLS = True
DEFAULT_FROM_EMAIL = 'Den Norske Turistforening <*****@*****.**>'
SERVER_EMAIL = 'DNT Django <*****@*****.**>' # not currently in use

# Security settings
# Note that many of these settings are redundant because their effect is implemented directly in the reverse proxy.
# However they are still included here for explicity (and to satisfy Django's check command).
# Allow SECRET_KEY_PROD to be unset if it's overwritten by staging/dev configurations. The app will fail to start
# without the SECRET_KEY.
SECRET_KEY = secrets.get('SECRET_KEY_PROD')
ALLOWED_HOSTS = SITE_DOMAINS
SECURE_SSL_REDIRECT = True
SESSION_COOKIE_SECURE = True
CSRF_COOKIE_HTTPONLY = True