Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

reverse settings

  • Loading branch information...
commit a2d4a7c7bf75a62fff6f3d33bc8d6f3f63bbcd13 1 parent 218868c
@andymckay andymckay authored
View
14 solitude/settings/sites/dev/db.py
@@ -2,12 +2,17 @@
import logging
+import dj_database_url
+
import private_base as private
ADMINS = ()
-DATABASES = {'default': {}}
+DATABASES = {}
+DATABASES['default'] = dj_database_url.parse(private.DATABASES_DEFAULT_URL)
+DATABASES['default']['ENGINE'] = 'django.db.backends.mysql'
+DATABASES['default']['OPTIONS'] = {'init_command': 'SET storage_engine=InnoDB'}
DEBUG = False
DEBUG_PROPAGATE_EXCEPTIONS = False
@@ -28,16 +33,13 @@
TEMPLATE_DEBUG = DEBUG
# Solitude specific settings.
-AES_KEYS = {}
+AES_KEYS = private.AES_KEYS
CLEANSED_SETTINGS_ACCESS = True
CLIENT_JWT_KEYS = private.CLIENT_JWT_KEYS
-PAYPAL_APP_ID = private.PAYPAL_APP_ID
-PAYPAL_AUTH = private.PAYPAL_AUTH
-PAYPAL_CHAINS = private.PAYPAL_CHAINS
+PAYPAL_PROXY = private.PAYPAL_PROXY
PAYPAL_URL_WHITELIST = ('https://marketplace-dev.allizom.org',)
-PAYPAL_USE_SANDBOX = True
BANGO_ENV = 'test'
BANGO_AUTH = private.BANGO_AUTH
View
14 solitude/settings/sites/dev/proxy.py
@@ -2,17 +2,12 @@
import logging
-import dj_database_url
-
import private_base as private
ADMINS = ()
-DATABASES = {}
-DATABASES['default'] = dj_database_url.parse(private.DATABASES_DEFAULT_URL)
-DATABASES['default']['ENGINE'] = 'django.db.backends.mysql'
-DATABASES['default']['OPTIONS'] = {'init_command': 'SET storage_engine=InnoDB'}
+DATABASES = {'default': {}}
DEBUG = False
DEBUG_PROPAGATE_EXCEPTIONS = False
@@ -33,13 +28,16 @@
TEMPLATE_DEBUG = DEBUG
# Solitude specific settings.
-AES_KEYS = private.AES_KEYS
+AES_KEYS = {}
CLEANSED_SETTINGS_ACCESS = True
CLIENT_JWT_KEYS = private.CLIENT_JWT_KEYS
-PAYPAL_PROXY = private.PAYPAL_PROXY
+PAYPAL_APP_ID = private.PAYPAL_APP_ID
+PAYPAL_AUTH = private.PAYPAL_AUTH
+PAYPAL_CHAINS = private.PAYPAL_CHAINS
PAYPAL_URL_WHITELIST = ('https://marketplace-dev.allizom.org',)
+PAYPAL_USE_SANDBOX = True
BANGO_ENV = 'test'
BANGO_AUTH = private.BANGO_AUTH
View
15 solitude/settings/sites/prod/db.py
@@ -2,12 +2,17 @@
import logging
+import dj_database_url
+
import private_base as private
ADMINS = ()
-DATABASES = {'default': {}}
+DATABASES = {}
+DATABASES['default'] = dj_database_url.parse(private.DATABASES_DEFAULT_URL)
+DATABASES['default']['ENGINE'] = 'django.db.backends.mysql'
+DATABASES['default']['OPTIONS'] = {'init_command': 'SET storage_engine=InnoDB'}
DEBUG = False
DEBUG_PROPAGATE_EXCEPTIONS = False
@@ -28,16 +33,12 @@
TEMPLATE_DEBUG = DEBUG
# Solitude specific settings.
-AES_KEYS = {}
+AES_KEYS = private.AES_KEYS
-CLEANSED_SETTINGS_ACCESS = True
CLIENT_JWT_KEYS = private.CLIENT_JWT_KEYS
-PAYPAL_APP_ID = private.PAYPAL_APP_ID
-PAYPAL_AUTH = private.PAYPAL_AUTH
-PAYPAL_CHAINS = private.PAYPAL_CHAINS
+PAYPAL_PROXY = private.PAYPAL_PROXY
PAYPAL_URL_WHITELIST = ('https://marketplace.firefox.com',)
-PAYPAL_USE_SANDBOX = True
BANGO_ENV = 'test'
BANGO_AUTH = private.BANGO_AUTH
View
15 solitude/settings/sites/prod/proxy.py
@@ -2,17 +2,12 @@
import logging
-import dj_database_url
-
import private_base as private
ADMINS = ()
-DATABASES = {}
-DATABASES['default'] = dj_database_url.parse(private.DATABASES_DEFAULT_URL)
-DATABASES['default']['ENGINE'] = 'django.db.backends.mysql'
-DATABASES['default']['OPTIONS'] = {'init_command': 'SET storage_engine=InnoDB'}
+DATABASES = {'default': {}}
DEBUG = False
DEBUG_PROPAGATE_EXCEPTIONS = False
@@ -33,12 +28,16 @@
TEMPLATE_DEBUG = DEBUG
# Solitude specific settings.
-AES_KEYS = private.AES_KEYS
+AES_KEYS = {}
+CLEANSED_SETTINGS_ACCESS = True
CLIENT_JWT_KEYS = private.CLIENT_JWT_KEYS
-PAYPAL_PROXY = private.PAYPAL_PROXY
+PAYPAL_APP_ID = private.PAYPAL_APP_ID
+PAYPAL_AUTH = private.PAYPAL_AUTH
+PAYPAL_CHAINS = private.PAYPAL_CHAINS
PAYPAL_URL_WHITELIST = ('https://marketplace.firefox.com',)
+PAYPAL_USE_SANDBOX = True
BANGO_ENV = 'test'
BANGO_AUTH = private.BANGO_AUTH
View
15 solitude/settings/sites/stage/db.py
@@ -2,12 +2,17 @@
import logging
+import dj_database_url
+
import private_base as private
ADMINS = ()
-DATABASES = {'default': {}}
+DATABASES = {}
+DATABASES['default'] = dj_database_url.parse(private.DATABASES_DEFAULT_URL)
+DATABASES['default']['ENGINE'] = 'django.db.backends.mysql'
+DATABASES['default']['OPTIONS'] = {'init_command': 'SET storage_engine=InnoDB'}
DEBUG = False
DEBUG_PROPAGATE_EXCEPTIONS = False
@@ -28,16 +33,12 @@
TEMPLATE_DEBUG = DEBUG
# Solitude specific settings.
-AES_KEYS = {}
+AES_KEYS = private.AES_KEYS
-CLEANSED_SETTINGS_ACCESS = True
CLIENT_JWT_KEYS = private.CLIENT_JWT_KEYS
-PAYPAL_APP_ID = private.PAYPAL_APP_ID
-PAYPAL_AUTH = private.PAYPAL_AUTH
-PAYPAL_CHAINS = private.PAYPAL_CHAINS
+PAYPAL_PROXY = private.PAYPAL_PROXY
PAYPAL_URL_WHITELIST = ('https://marketplace.allizom.org',)
-PAYPAL_USE_SANDBOX = True
BANGO_ENV = 'test'
BANGO_AUTH = private.BANGO_AUTH
View
15 solitude/settings/sites/stage/proxy.py
@@ -2,17 +2,12 @@
import logging
-import dj_database_url
-
import private_base as private
ADMINS = ()
-DATABASES = {}
-DATABASES['default'] = dj_database_url.parse(private.DATABASES_DEFAULT_URL)
-DATABASES['default']['ENGINE'] = 'django.db.backends.mysql'
-DATABASES['default']['OPTIONS'] = {'init_command': 'SET storage_engine=InnoDB'}
+DATABASES = {'default': {}}
DEBUG = False
DEBUG_PROPAGATE_EXCEPTIONS = False
@@ -33,12 +28,16 @@
TEMPLATE_DEBUG = DEBUG
# Solitude specific settings.
-AES_KEYS = private.AES_KEYS
+AES_KEYS = {}
+CLEANSED_SETTINGS_ACCESS = True
CLIENT_JWT_KEYS = private.CLIENT_JWT_KEYS
-PAYPAL_PROXY = private.PAYPAL_PROXY
+PAYPAL_APP_ID = private.PAYPAL_APP_ID
+PAYPAL_AUTH = private.PAYPAL_AUTH
+PAYPAL_CHAINS = private.PAYPAL_CHAINS
PAYPAL_URL_WHITELIST = ('https://marketplace.allizom.org',)
+PAYPAL_USE_SANDBOX = True
BANGO_ENV = 'test'
BANGO_AUTH = private.BANGO_AUTH
Please sign in to comment.
Something went wrong with that request. Please try again.