Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
oser-backend
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hamza Touizrat
oser-backend
Commits
9dfa70d1
Commit
9dfa70d1
authored
May 26, 2018
by
florimondmanca
Browse files
Options
Downloads
Patches
Plain Diff
remove test log, configure sendgrid sandbox via env var
parent
3570402b
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
oser_backend/mails/signals.py
+0
-6
0 additions, 6 deletions
oser_backend/mails/signals.py
oser_backend/oser_backend/settings/production.py
+2
-4
2 additions, 4 deletions
oser_backend/oser_backend/settings/production.py
with
2 additions
and
10 deletions
oser_backend/mails/signals.py
+
0
−
6
View file @
9dfa70d1
"""
Mails app signals.
"""
"""
Mails app signals.
"""
from
django.dispatch
import
Signal
,
receiver
from
django.dispatch
import
Signal
,
receiver
from
django.db.models.signals
import
post_save
from
python_http_client.exceptions
import
HTTPError
from
python_http_client.exceptions
import
HTTPError
from
logs
import
get_logger
from
logs
import
get_logger
...
@@ -34,8 +33,3 @@ def log_failed(sender, exception, **kwargs):
...
@@ -34,8 +33,3 @@ def log_failed(sender, exception, **kwargs):
logger
.
exception
(
exception
.
read
())
logger
.
exception
(
exception
.
read
())
else
:
else
:
logger
.
exception
(
exception
)
logger
.
exception
(
exception
)
@receiver
(
post_save
)
def
test_logger
(
sender
,
**
kwargs
):
logger
.
info
(
'
TEST
'
)
This diff is collapsed.
Click to expand it.
oser_backend/oser_backend/settings/production.py
+
2
−
4
View file @
9dfa70d1
...
@@ -20,13 +20,11 @@ ALLOWED_HOSTS = [
...
@@ -20,13 +20,11 @@ ALLOWED_HOSTS = [
SESSION_COOKIE_SECURE
=
True
SESSION_COOKIE_SECURE
=
True
CSRF_COOKIE_SECURE
=
True
CSRF_COOKIE_SECURE
=
True
SECURE_BROWSER_XSS_FILTER
=
True
SECURE_BROWSER_XSS_FILTER
=
True
# SECURE_SSL_REDIRECT = True
# Mails
# Mails
MAILS_ENABLED
=
True
MAILS_ENABLED
=
True
SENDGRID_SANDBOX_MODE_IN_DEBUG
=
os
.
environ
.
get
(
# Visits
'
SENDGRID_SANDBOX_MODE_IN_DEBUG
'
,
True
)
VISITS_NOTIFY_PARTICIPATE
=
True
# Celery settings
# Celery settings
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment