Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Drop default EMAIL_URL (#12580)
Marcin Gębalab981cac3ec0b
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 2592f2474e..e725bd1968 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -5,9 +5,11 @@ All notable, unreleased changes to this project will be documented in this file.3.14.0 [Unreleased]### Breaking changes+- `path` field for errors related with product variants input in `ProductBulkCreate` will return more detailed paths: `variants.1.stocks.0.warehouse` instead of `variants.1.warehouses` - #12534 by @SzymJ### GraphQL API+- Add `path` field to `ProductVariantBulkError` - #12534 by @SzymJ- Allow setting metadata during user creating and updating - #12577 by @IKarbowiak- The following mutations have been updated:@@ -22,6 +24,8 @@ All notable, unreleased changes to this project will be documented in this file.### Other changes+- Remove default `EMAIL_URL` value pointing to console output; from now on EMAIL_URL has to be set explicitly - #12580 by @maarcingebala+# 3.13.0### Highlightsdiff --git a/saleor/settings.py b/saleor/settings.pyindex 041539a264..4f4af55d91 100644--- a/saleor/settings.py+++ b/saleor/settings.py@@ -125,18 +125,16 @@ if not EMAIL_URL and SENDGRID_USERNAME and SENDGRID_PASSWORD:f":{SENDGRID_PASSWORD}@smtp.sendgrid.net:587/?tls=True")-email_config = dj_email_url.parse(- EMAIL_URL or "console://[email protected]:console@example/"-)+email_config = dj_email_url.parse(EMAIL_URL or "")-EMAIL_FILE_PATH: str = email_config["EMAIL_FILE_PATH"]-EMAIL_HOST_USER: str = email_config["EMAIL_HOST_USER"]-EMAIL_HOST_PASSWORD: str = email_config["EMAIL_HOST_PASSWORD"]-EMAIL_HOST: str = email_config["EMAIL_HOST"]-EMAIL_PORT: int = email_config["EMAIL_PORT"]-EMAIL_BACKEND: str = email_config["EMAIL_BACKEND"]-EMAIL_USE_TLS: bool = email_config["EMAIL_USE_TLS"]-EMAIL_USE_SSL: bool = email_config["EMAIL_USE_SSL"]+EMAIL_FILE_PATH: str = email_config.get("EMAIL_FILE_PATH", "")+EMAIL_HOST_USER: str = email_config.get("EMAIL_HOST_USER", "")+EMAIL_HOST_PASSWORD: str = email_config.get("EMAIL_HOST_PASSWORD", "")+EMAIL_HOST: str = email_config.get("EMAIL_HOST", "")+EMAIL_PORT: str = str(email_config.get("EMAIL_PORT", ""))+EMAIL_BACKEND: str = email_config.get("EMAIL_BACKEND", "")+EMAIL_USE_TLS: bool = email_config.get("EMAIL_USE_TLS", False)+EMAIL_USE_SSL: bool = email_config.get("EMAIL_USE_SSL", False)# If enabled, make sure you have set proper storefront address in ALLOWED_CLIENT_HOSTS.ENABLE_ACCOUNT_CONFIRMATION_BY_EMAIL = get_bool_from_env(@@ -148,7 +146,9 @@ ENABLE_SSL = get_bool_from_env("ENABLE_SSL", False)if ENABLE_SSL:SECURE_SSL_REDIRECT = not DEBUG-DEFAULT_FROM_EMAIL: str = os.environ.get("DEFAULT_FROM_EMAIL", EMAIL_HOST_USER)+DEFAULT_FROM_EMAIL: str = os.environ.get(+ "DEFAULT_FROM_EMAIL", EMAIL_HOST_USER or "[email protected]"+)MEDIA_ROOT: str = os.path.join(PROJECT_ROOT, "media")MEDIA_URL: str = os.environ.get("MEDIA_URL", "/media/")