Skip to content

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

Upgrade Django GraphQL JWT package

Patryk Zawadzki2efa955036b2
diff --git a/saleor/settings.py b/saleor/settings.py
index 62f0a53bb3..40f5ca4076 100644
--- a/saleor/settings.py
+++ b/saleor/settings.py
@@ -379,8 +379,6 @@ PAYMENT_HOST = get_host
PAYMENT_MODEL = "order.Payment"
-SESSION_SERIALIZER = "django.contrib.sessions.serializers.JSONSerializer"
-
MESSAGE_TAGS = {messages.ERROR: "danger"}
LOW_STOCK_THRESHOLD = 10
@@ -513,15 +511,6 @@ ALLOWED_STYLES = ["text-align"]
# Slugs for menus precreated in Django migrations
DEFAULT_MENUS = {"top_menu_name": "navbar", "bottom_menu_name": "footer"}
-# This enable the new 'No Captcha reCaptcha' version (the simple checkbox)
-# instead of the old (deprecated) one. For more information see:
-# https://github.com/praekelt/django-recaptcha/blob/34af16ba1e/README.rst
-NOCAPTCHA = True
-
-# Set Google's reCaptcha keys
-RECAPTCHA_PUBLIC_KEY = os.environ.get("RECAPTCHA_PUBLIC_KEY")
-RECAPTCHA_PRIVATE_KEY = os.environ.get("RECAPTCHA_PRIVATE_KEY")
-
# Sentry
SENTRY_DSN = os.environ.get("SENTRY_DSN")
diff --git a/tests/settings.py b/tests/settings.py
index 18d9febeba..097c210cb1 100644
--- a/tests/settings.py
+++ b/tests/settings.py
@@ -35,9 +35,6 @@ SEARCH_BACKEND = "saleor.search.backends.postgresql"
EMAIL_BACKEND = "django.core.mail.backends.locmem.EmailBackend"
-RECAPTCHA_PUBLIC_KEY = ""
-RECAPTCHA_PRIVATE_KEY = ""
-
VATLAYER_ACCESS_KEY = ""
if "sqlite" in DATABASES["default"]["ENGINE"]: # noqa