diff options
author | 2022-02-28 18:13:01 +0100 | |
---|---|---|
committer | 2022-02-28 18:13:01 +0100 | |
commit | 193f0a977471539859d0b72c56f8db55a0d9f3c7 (patch) | |
tree | 16429114e21a429ae336d1b9d8ba90512bbc2712 /pydis_site/settings.py | |
parent | Merge pull request #682 from python-discord/add-channel_id-to-clean-logs (diff) | |
parent | Add link to contributing guide (diff) |
Merge pull request #683 from python-discord/readme-for-project-directory
Add a README for the project directory, remove unused apps
Diffstat (limited to 'pydis_site/settings.py')
-rw-r--r-- | pydis_site/settings.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pydis_site/settings.py b/pydis_site/settings.py index 3b146f2c..4f2b4aef 100644 --- a/pydis_site/settings.py +++ b/pydis_site/settings.py @@ -20,15 +20,20 @@ import environ import sentry_sdk from sentry_sdk.integrations.django import DjangoIntegration -from pydis_site.constants import GIT_SHA env = environ.Env( DEBUG=(bool, False), SITE_DSN=(str, ""), BUILDING_DOCKER=(bool, False), STATIC_BUILD=(bool, False), + GIT_SHA=(str, 'development'), + TIMEOUT_PERIOD=(int, 5), + GITHUB_TOKEN=(str, None), ) +GIT_SHA = env("GIT_SHA") +GITHUB_TOKEN = env("GITHUB_TOKEN") + sentry_sdk.init( dsn=env('SITE_DSN'), integrations=[DjangoIntegration()], @@ -288,3 +293,6 @@ CONTENT_PAGES_PATH = Path(BASE_DIR, "pydis_site", "apps", "content", "resources" # Path for redirection links REDIRECTIONS_PATH = Path(BASE_DIR, "pydis_site", "apps", "redirect", "redirects.yaml") + +# How long to wait for synchronous requests before timing out +TIMEOUT_PERIOD = env("TIMEOUT_PERIOD") |