diff options
| author | 2020-10-06 17:37:11 +0300 | |
|---|---|---|
| committer | 2020-10-06 17:37:11 +0300 | |
| commit | 124f6391575a896fb0c2a25f3ad8d8f29c6767b3 (patch) | |
| tree | aa9e1c0041746c41155a177a0e96a41c2a44af15 /pydis_site | |
| parent | Add repository configuration to settings (diff) | |
Move repository configuration to environment variables
Diffstat (limited to 'pydis_site')
| -rw-r--r-- | pydis_site/settings.py | 11 | 
1 files changed, 7 insertions, 4 deletions
| diff --git a/pydis_site/settings.py b/pydis_site/settings.py index 830ca889..5d8353fe 100644 --- a/pydis_site/settings.py +++ b/pydis_site/settings.py @@ -23,7 +23,10 @@ from pydis_site.constants import GIT_SHA  env = environ.Env(      DEBUG=(bool, False), -    SITE_SENTRY_DSN=(str, "") +    SITE_SENTRY_DSN=(str, ""), +    SITE_REPOSITORY_OWNER=(str, "python-discord"), +    SITE_REPOSITORY_NAME=(str, "site"), +    SITE_REPOSITORY_BRANCH=(str, "master")  )  sentry_sdk.init( @@ -317,6 +320,6 @@ LOGIN_REDIRECT_URL = "home"  SOCIALACCOUNT_ADAPTER = "pydis_site.utils.account.SocialAccountAdapter"  # Information about site repository -SITE_REPOSITORY_OWNER = "python-discord" -SITE_REPOSITORY_NAME = "site" -SITE_REPOSITORY_BRANCH = "master" +SITE_REPOSITORY_OWNER = env("SITE_REPOSITORY_OWNER") +SITE_REPOSITORY_NAME = env("SITE_REPOSITORY_NAME") +SITE_REPOSITORY_BRANCH = env("SITE_REPOSITORY_BRANCH") | 
