Skip to content

Commit 6f9202d

Browse files
committed
fix: use HTTP for ACCOUNT_DEFAULT_HTTP_PROTOCOL in local environment
1 parent 84bedde commit 6f9202d

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

djangosnippets/settings/base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ def user_url(user):
139139
ACCOUNT_EMAIL_CONFIRMATION_EXPIRE_DAYS = 7
140140
ACCOUNT_SIGNUP_FIELDS = ["email*", "username*", "password1*", "password2*"]
141141
ACCOUNT_EMAIL_VERIFICATION = "mandatory"
142-
ACCOUNT_DEFAULT_HTTP_PROTOCOL = "https"
143142
ACCOUNT_LOGOUT_ON_GET = True
144143
ACCOUNT_USERNAME_MIN_LENGTH = 3
145144
ACCOUNT_ADAPTER = "djangosnippets.adapters.DjangoSnippetsAccountAdapter"

djangosnippets/settings/production.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ def env_to_bool(input): # noqa: A002
1919

2020

2121
DEBUG = env_to_bool(os.environ.get("DEBUG", False)) # noqa : PLW1508
22+
ACCOUNT_DEFAULT_HTTP_PROTOCOL = "https"
2223

2324
AWS_ACCESS_KEY_ID = os.environ.get("AWS_ACCESS_KEY_ID", "")
2425
AWS_SECRET_ACCESS_KEY = os.environ.get("AWS_SECRET_ACCESS_KEY", "")

0 commit comments

Comments
 (0)