Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Style Guide 2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
Weby
Style Guide 2
Merge requests
!29
Feat/redesign
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Feat/redesign
feat/redesign
into
master
Overview
0
Commits
49
Pipelines
1
Changes
168
Merged
Alexa Valentová
requested to merge
feat/redesign
into
master
7 months ago
Overview
0
Commits
49
Pipelines
1
Changes
168
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
b8e332f9
49 commits,
7 months ago
168 files
+
3111
−
349
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
168
Search (e.g. *.vue) (Ctrl+P)
majak_uistyleguide/settings/base.py
+
17
−
13
Options
from
pathlib
import
Path
import
environ
import
sentry_sdk
from
sentry_sdk.integrations.django
import
DjangoIntegration
ROOT_DIR
=
Path
(
__file__
).
parents
[
2
]
@@ -86,16 +83,23 @@ TEMPLATES = [
# SENTRY
# ------------------------------------------------------------------------------
SENTRY_DSN
=
env
.
str
(
"
SENTRY_DSN
"
,
default
=
""
)
if
SENTRY_DSN
!=
""
:
sentry_sdk
.
init
(
dsn
=
SENTRY_DSN
,
integrations
=
[
DjangoIntegration
(),
],
send_default_pii
=
True
,
)
try
:
import
sentry_sdk
from
sentry_sdk.integrations.django
import
DjangoIntegration
SENTRY_DSN
=
env
.
str
(
"
SENTRY_DSN
"
,
default
=
""
)
if
SENTRY_DSN
!=
""
:
sentry_sdk
.
init
(
dsn
=
SENTRY_DSN
,
integrations
=
[
DjangoIntegration
(),
],
send_default_pii
=
True
,
)
except
ImportError
:
pass
# STATIC
Loading