1
1
# pylint: skip-file
2
-
3
- import sentry_sdk
4
- from sentry_sdk .integrations .celery import CeleryIntegration
5
- from sentry_sdk .integrations .django import DjangoIntegration
6
-
7
2
from .base import * # noqa
8
3
from .base import env
9
4
48
43
# STORAGES
49
44
# ------------------------------------------------------------------------------
50
45
# https://django-storages.readthedocs.io/en/latest/backends/amazon-S3.html#settings
51
- AWS_ACCESS_KEY_ID = env ("DJANGO_AWS_ACCESS_KEY_ID" , default = None )
52
- AWS_SECRET_ACCESS_KEY = env ("DJANGO_AWS_SECRET_ACCESS_KEY" , default = None )
53
- AWS_STORAGE_BUCKET_NAME = env ("DJANGO_AWS_STORAGE_BUCKET_NAME" )
46
+
47
+ AWS_STORAGE_BUCKET_NAME = env ("DJANGO_AWS_STORAGE_BUCKET_NAME" , default = None )
48
+ # We dont need access key . The instance we use in Sleakops already access to the buckets
49
+ # AWS_ACCESS_KEY_ID = env("DJANGO_AWS_ACCESS_KEY_ID", default=None)
50
+ # AWS_SECRET_ACCESS_KEY = env("DJANGO_AWS_SECRET_ACCESS_KEY", default=None)
54
51
55
52
# https://django-storages.readthedocs.io/en/latest/backends/amazon-S3.html#cloudfront
56
53
# AWS_S3_CUSTOM_DOMAIN = env("DJANGO_AWS_S3_CUSTOM_DOMAIN", default=None)
64
61
# ------------------------------------------------------------------------------
65
62
DEFAULT_FILE_STORAGE = "storages.backends.s3boto3.S3Boto3Storage"
66
63
64
+
65
+
66
+ #
67
+ # Sentry
68
+ # -------------------------------------------------------------------------------
69
+ # import sentry_sdk
70
+ # from sentry_sdk.integrations.celery import CeleryIntegration
71
+ # from sentry_sdk.integrations.django import DjangoIntegration
72
+ # SENTRY_DSN = env("SENTRY_DSN", None)
73
+ # sentry_sdk.init(
74
+ # dsn=SENTRY_DSN,
75
+ # integrations=[DjangoIntegration(), CeleryIntegration()],
76
+ # environment=ENVIRONMENT, # noqa
77
+ # traces_sample_rate=env.float("SENTRY_TRACES_SAMPLE_RATE", default=0.0),
78
+ # # If you wish to associate users to errors (assuming you are using
79
+ # # django.contrib.auth) you may enable sending PII data.
80
+ # send_default_pii=True,
81
+ # )
0 commit comments