Skip to content

Saleor Core: the high performance, composable, headless commerce API.

DEFAULT_COUNTRY and DEFAULT_CURRENCY settable by environment variable

Emlyn Clay11517b6d19b9
diff --git a/saleor/settings.py b/saleor/settings.py
index d021d6eb43..44201b2393 100644
--- a/saleor/settings.py
+++ b/saleor/settings.py
@@ -286,8 +286,8 @@ AUTH_USER_MODEL = 'account.User'
LOGIN_URL = '/account/login/'
-DEFAULT_COUNTRY = 'US'
-DEFAULT_CURRENCY = 'USD'
+DEFAULT_COUNTRY = os.environ.get('DEFAULT_COUNTRY', 'US')
+DEFAULT_CURRENCY = os.environ.get('DEFAULT_CURRENCY', 'USD')
DEFAULT_DECIMAL_PLACES = get_currency_fraction(DEFAULT_CURRENCY)
AVAILABLE_CURRENCIES = [DEFAULT_CURRENCY]