Skip to content

Commit

Permalink
update email domain"
Browse files Browse the repository at this point in the history
  • Loading branch information
rasulkireev committed Nov 21, 2024
1 parent 6d17762 commit a8b2c86
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 20 deletions.
2 changes: 1 addition & 1 deletion core/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def add_email_to_buttondown(email, tag):
"email_address": str(email),
"metadata": {"source": tag},
"tags": [tag],
"referrer_url": "https://statushen.app",
"referrer_url": "https://statushen.com",
"subscriber_type": "regular",
}

Expand Down
34 changes: 15 additions & 19 deletions statushen/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@

import os
from pathlib import Path

import environ
import structlog
import sentry_sdk


import structlog

# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
Expand All @@ -36,7 +35,7 @@
SECRET_KEY = env("SECRET_KEY")

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = env('DEBUG')
DEBUG = env("DEBUG")

ALLOWED_HOSTS = env.list("ALLOWED_HOSTS")
CSRF_TRUSTED_ORIGINS = env.list("CSRF_TRUSTED_ORIGINS")
Expand All @@ -54,12 +53,10 @@
"widget_tweaks",
"anymail",
"djstripe",

"allauth",
"allauth.account",
"allauth.socialaccount",
"allauth.socialaccount.providers.github",

"django_q",
"django_extensions",
"core.apps.CoreConfig",
Expand Down Expand Up @@ -153,14 +150,14 @@
"default": {
"BACKEND": "statushen.storages.CustomS3Boto3Storage",
"OPTIONS": {
"bucket_name": bucket_name,
"default_acl": "public-read",
"region_name": "eu-east-1",
"endpoint_url": env("AWS_S3_ENDPOINT_URL"),
"access_key": env("AWS_ACCESS_KEY_ID"),
"secret_key": env("AWS_SECRET_ACCESS_KEY"),
"querystring_auth": False,
"file_overwrite": False,
"bucket_name": bucket_name,
"default_acl": "public-read",
"region_name": "eu-east-1",
"endpoint_url": env("AWS_S3_ENDPOINT_URL"),
"access_key": env("AWS_ACCESS_KEY_ID"),
"secret_key": env("AWS_SECRET_ACCESS_KEY"),
"querystring_auth": False,
"file_overwrite": False,
},
},
"staticfiles": {
Expand Down Expand Up @@ -214,15 +211,14 @@
"secret": env("GITHUB_CLIENT_SECRET"),
},
},

}

ANYMAIL = {
"MAILGUN_API_KEY": env("MAILGUN_API_KEY"),
"MAILGUN_SENDER_DOMAIN": "mg.statushen.app",
"MAILGUN_SENDER_DOMAIN": "mg.statushen.com",
}
DEFAULT_FROM_EMAIL = "Rasul from StatusHen <hello@statushen.app>"
SERVER_EMAIL = "StatusHen Errors <error@statushen.app>"
DEFAULT_FROM_EMAIL = "Rasul from StatusHen <hello@statushen.com>"
SERVER_EMAIL = "StatusHen Errors <error@statushen.com>"

if DEBUG:
EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
Expand Down Expand Up @@ -314,7 +310,7 @@

POSTHOG_API_KEY = env("POSTHOG_API_KEY")

BUTTONDOWN_API_KEY=env("BUTTONDOWN_API_KEY")
BUTTONDOWN_API_KEY = env("BUTTONDOWN_API_KEY")

STRIPE_LIVE_SECRET_KEY = env("STRIPE_LIVE_SECRET_KEY")
STRIPE_TEST_SECRET_KEY = env("STRIPE_TEST_SECRET_KEY")
Expand Down

0 comments on commit a8b2c86

Please sign in to comment.