Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Rename variable name
Adam Bogdał0c537c37a729
diff --git a/saleor/core/context_processors.py b/saleor/core/context_processors.pyindex d21975509f..57dcb7d298 100644--- a/saleor/core/context_processors.py+++ b/saleor/core/context_processors.py@@ -12,7 +12,7 @@ def get_setting_as_dict(name, short_name=None):def canonical_hostname(request):- return get_setting_as_dict('CANONICAL_HOSTNAME')+ return get_setting_as_dict('FQDN')def default_currency(request):diff --git a/saleor/core/utils/__init__.py b/saleor/core/utils/__init__.pyindex bb3ffd4143..a6fedb7c70 100644--- a/saleor/core/utils/__init__.py+++ b/saleor/core/utils/__init__.py@@ -77,9 +77,9 @@ class BaseStep(Step):def build_absolute_uri(location, is_secure=False):try:- host = settings.CANONICAL_HOSTNAME+ host = settings.FQDNexcept AttributeError:- raise ImproperlyConfigured('You need to specify CANONICAL_HOSTNAME in '+ raise ImproperlyConfigured('You need to specify FQDN in ''your Django settings file')if not absolute_http_url_re.match(location):current_uri = '%s://%s' % ('https' if is_secure else 'http', host)diff --git a/saleor/settings.py b/saleor/settings.pyindex d270c7b4c9..466a8845bb 100644--- a/saleor/settings.py+++ b/saleor/settings.py@@ -198,7 +198,8 @@ AUTHENTICATION_BACKENDS = (AUTH_USER_MODEL = 'userprofile.User'-CANONICAL_HOSTNAME = os.environ.get('CANONICAL_HOSTNAME', 'localhost:8000')+# Fully qualified domain name+FQDN = os.environ.get('FQDN', 'localhost:8000')LOGIN_URL = '/account/login'@@ -218,15 +219,13 @@ GOOGLE_ANALYTICS_TRACKING_ID = os.environ.get('GOOGLE_ANALYTICS_TRACKING_ID')GOOGLE_CLIENT_ID = os.environ.get('GOOGLE_CLIENT_ID')GOOGLE_CLIENT_SECRET = os.environ.get('GOOGLE_CLIENT_SECRET')-PAYMENT_BASE_URL = 'http://%s/' % CANONICAL_HOSTNAME-PAYMENT_MODEL = 'order.Payment'PAYMENT_VARIANTS = {'default': ('payments.dummy.DummyProvider', {})}-PAYMENT_HOST = os.environ.get('PAYMENT_HOST', 'localhost:8000')+PAYMENT_HOST = FQDNSESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'SESSION_ENGINE = 'django.contrib.sessions.backends.cached_db'