Skip to content

Commit

Permalink
Merge pull request #127 from ImperialCollegeLondon/email-notifications
Browse files Browse the repository at this point in the history
Configure email notification backend
  • Loading branch information
cc-a authored Feb 7, 2025
2 parents 56dc3fd + 2c074b5 commit a39fcd6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ module = [
"flask_oauthlib.*",
"invenio_app.*",
"invenio_assets.*",
"invenio_notifications.*",
"invenio_oauthclient.*",
"invenio_records_resources.*",
"marshmallow.*",
"marshmallow_utils.*"
"marshmallow_utils.*",
]
ignore_missing_imports = true

Expand Down
2 changes: 2 additions & 0 deletions site/ic_data_repo/config/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@
SITE_API_URL = f"https://{APP_ALLOWED_HOSTS[0]}/api"

ACCOUNTS_LOCAL_LOGIN_ENABLED = False

MAIL_SUPPRESS_SEND = False
5 changes: 5 additions & 0 deletions site/ic_data_repo/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import os
from datetime import datetime

from invenio_notifications.backends.email import EmailNotificationBackend
from invenio_oauthclient.views.client import auto_redirect_login

from .custom_fields import * # noqa: F401,F403
Expand Down Expand Up @@ -213,3 +214,7 @@
RDM_COMMUNITY_REQUIRED_TO_PUBLISH = True

RDM_ALLOW_METADATA_ONLY_RECORDS = False

NOTIFICATION_BACKENDS = {
EmailNotificationBackend.id: EmailNotificationBackend,
}

0 comments on commit a39fcd6

Please sign in to comment.