Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Django Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Tobias Mieves
Django Core
Merge requests
!44
Main
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Main
main
into
develop
Overview
0
Commits
14
Pipelines
2
Changes
3
Merged
Main
Tobias Mieves
requested to merge
main
into
develop
8 months ago
Overview
0
Commits
14
Pipelines
2
Changes
3
0
0
Merge request reports
Compare
develop
develop (base)
and
latest version
latest version
38ce3206
14 commits,
8 months ago
3 files
+
17
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
core/settings.py
+
12
−
0
View file @ 38ce3206
Edit in single-file editor
Open in Web IDE
Show full file
@@ -12,6 +12,8 @@ https://docs.djangoproject.com/en/4.1/ref/settings/
from
os
import
environ
from
pathlib
import
Path
import
sentry_sdk
env
=
environ
# Build paths inside the project like this: BASE_DIR / 'subdir'.
@@ -137,3 +139,13 @@ EMAIL_HOST = env.get("EMAIL_HOST")
EMAIL_HOST_USER
=
env
.
get
(
"
EMAIL_USER
"
)
EMAIL_HOST_PASSWORD
=
env
.
get
(
"
EMAIL_PASSWORD
"
)
DEFAULT_FROM_EMAIL
=
env
.
get
(
"
FROM_EMAIL
"
)
ERROR_REPORTING
=
env
.
get
(
"
ERROR_REPORTING
"
,
False
)
if
ERROR_REPORTING
and
not
DEBUG
:
sentry_sdk
.
init
(
dsn
=
"
https://1ea494bd0994743aed627c8dbf46183b@o4508272990093312.ingest.de.sentry.io/4508295867990096
"
,
# of transactions for tracing.
traces_sample_rate
=
1.0
,
_experiments
=
{
# Set continuous_profiling_auto_start to True
# to automatically start the profiler on when
# possible.
"
continuous_profiling_auto_start
"
:
True
,
},
)
Loading