aboutsummaryrefslogtreecommitdiffstats
path: root/backend/__init__.py
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2024-07-08 15:09:17 +0100
committerGravatar GitHub <[email protected]>2024-07-08 15:09:17 +0100
commit642c0795c8738bf8b9ae39b9cf0180f7cdbac650 (patch)
tree4a075255d00d9f8a2f369567bdb79f6eefa4be9a /backend/__init__.py
parentMigration to official Sentry release CI action (#275) (diff)
parentStop using gunicorn and use uvicorn directly to run application (diff)
Merge pull request #276 from python-discord/jb3/environ/python-3.12
3.12 + Updates
Diffstat (limited to 'backend/__init__.py')
-rw-r--r--backend/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/backend/__init__.py b/backend/__init__.py
index dcbdcdf..67015d7 100644
--- a/backend/__init__.py
+++ b/backend/__init__.py
@@ -27,7 +27,7 @@ sentry_sdk.init(
dsn=constants.FORMS_BACKEND_DSN,
send_default_pii=True,
release=SENTRY_RELEASE,
- environment=SENTRY_RELEASE
+ environment=SENTRY_RELEASE,
)
middleware = [
@@ -36,10 +36,10 @@ middleware = [
allow_origins=["https://forms.pythondiscord.com"],
allow_origin_regex=ALLOW_ORIGIN_REGEX,
allow_headers=[
- "Content-Type"
+ "Content-Type",
],
allow_methods=["*"],
- allow_credentials=True
+ allow_credentials=True,
),
Middleware(DatabaseMiddleware),
Middleware(AuthenticationMiddleware, backend=JWTAuthenticationBackend()),