Skip to content

Commit

Permalink
Adding env variable for http protocol setting
Browse files Browse the repository at this point in the history
  • Loading branch information
stefdworschak committed Aug 23, 2021
1 parent 13e26a3 commit 0a23612
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@
ACCOUNT_USERNAME_REQUIRED = False
ACCOUNT_SIGNUP_EMAIL_ENTER_TWICE = False
ACCOUNT_USERNAME_MIN_LENGTH = 4
ACCOUNT_DEFAULT_HTTP_PROTOCOL = os.environ.get('ACCOUNT_DEFAULT_HTTP_PROTOCOL',
'https')
LOGIN_URL = "/accounts/login/"
LOGIN_REDIRECT_URL = "/post_login/"

Expand Down Expand Up @@ -170,7 +172,6 @@
SLACK_ENABLED = os.environ.get("SLACK_ENABLED") == 'True'

if SLACK_ENABLED:
ACCOUNT_DEFAULT_HTTP_PROTOCOL = 'https'
SLACK_WORKSPACE = os.environ.get('SLACK_WORKSPACE')
SLACK_BOT_TOKEN = os.environ.get('SLACK_BOT_TOKEN')
INSTALLED_APPS += ['custom_slack_provider']
Expand Down

0 comments on commit 0a23612

Please sign in to comment.