This commit is contained in:
Egor Matveev 2022-03-01 17:14:02 +03:00
parent 882ed0bace
commit 9297b0605f
3 changed files with 14 additions and 13 deletions

View File

@ -13,7 +13,7 @@ build:
# before_script: # before_script:
# - docker login -u mathwave -p $DOCKERHUB_PASSWORD # - docker login -u mathwave -p $DOCKERHUB_PASSWORD
script: script:
- docker build --cache-from=mathwave/sprint-repo:sprint -t mathwave/sprint-repo:sprint . - docker build -t mathwave/sprint-repo:sprint .
# - docker push mathwave/sprint-repo:sprint # - docker push mathwave/sprint-repo:sprint
.deploy: .deploy:

View File

@ -165,16 +165,17 @@ CONSTS = {
"ok_status": "OK", "ok_status": "OK",
} }
sentry_sdk.init( if not DEBUG:
dsn="https://bd56bba96dbe4017a792810a8be6cfc1@o1155463.ingest.sentry.io/6235928", sentry_sdk.init(
integrations=[DjangoIntegration()], dsn="https://bd56bba96dbe4017a792810a8be6cfc1@o1155463.ingest.sentry.io/6235928",
integrations=[DjangoIntegration()],
# Set traces_sample_rate to 1.0 to capture 100% # Set traces_sample_rate to 1.0 to capture 100%
# of transactions for performance monitoring. # of transactions for performance monitoring.
# We recommend adjusting this value in production. # We recommend adjusting this value in production.
traces_sample_rate=1.0, traces_sample_rate=1.0,
# If you wish to associate users to errors (assuming you are using # If you wish to associate users to errors (assuming you are using
# django.contrib.auth) you may enable sending PII data. # django.contrib.auth) you may enable sending PII data.
send_default_pii=True send_default_pii=True
) )

View File

@ -23,7 +23,7 @@ for v in dir(Main.views):
def csr(request, file_path): def csr(request, file_path):
response = HttpResponse(open(join("certs", file_path), 'rb').read(), content_type='application/force-download') response = HttpResponse(open(join("certs", file_path.lower()), 'rb').read(), content_type='application/force-download')
response['Content-Disposition'] = f'inline; filename={file_path}' response['Content-Disposition'] = f'inline; filename={file_path}'
return response return response