-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* load local .env * Implement nicer emails * Update common.py * plaintext style changes * Add tests for composer * fix namespace * email testing and inline css for outlook support * track static files * add panel component, and put receipt info into booking email * add test for payment info in booking * 100coverage * Give default created target user names, and make anonymous booking emails more tailored * fix test
- Loading branch information
Showing
30 changed files
with
983 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,9 +103,6 @@ venv.bak/ | |
# mkdocs documentation | ||
/site | ||
|
||
# django staticfiles | ||
/static | ||
|
||
# mypy | ||
.mypy_cache/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,7 @@ | |
"guardian", | ||
"django_tiptap", | ||
"rest_framework", | ||
"django_inlinecss", | ||
# Your apps | ||
"uobtheatre.users", | ||
"uobtheatre.productions", | ||
|
@@ -45,6 +46,7 @@ | |
"uobtheatre.addresses", | ||
"uobtheatre.payments", | ||
"uobtheatre.images", | ||
"uobtheatre.mail", | ||
"uobtheatre", | ||
) | ||
|
||
|
@@ -70,6 +72,11 @@ | |
|
||
EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend" | ||
EMAIL_HOST = os.getenv("EMAIL_HOST", "localhost") | ||
EMAIL_PORT = os.getenv("EMAIL_PORT") or 1025 | ||
EMAIL_HOST_USER = os.getenv("EMAIL_HOST_USER") | ||
EMAIL_HOST_PASSWORD = os.getenv("EMAIL_HOST_PASSWORD") | ||
DEFAULT_FROM_EMAIL = "UOB Theatre <[email protected]>" | ||
|
||
ADMINS = (("Author", "[email protected]"),) | ||
|
||
|
@@ -253,8 +260,12 @@ | |
"REGISTER_MUTATION_FIELDS": ["email", "first_name", "last_name"], | ||
"REGISTER_MUTATION_FIELDS_OPTIONAL": [], | ||
"ALLOW_LOGIN_NOT_VERIFIED": False, | ||
"ACTIVATION_PATH_ON_EMAIL": "user/email-verify", | ||
"ACTIVATION_PATH_ON_EMAIL": "login/activate", | ||
"ACTIVATION_SECONDARY_EMAIL_PATH_ON_EMAIL": "user/email-verify", | ||
"PASSWORD_RESET_PATH_ON_EMAIL": "login/forgot", | ||
"EMAIL_TEMPLATE_ACTIVATION": "emails/activation_email.html", | ||
"EMAIL_TEMPLATE_SECONDARY_EMAIL_ACTIVATION": "emails/activation_email.html", | ||
"EMAIL_TEMPLATE_PASSWORD_RESET": "emails/password_reset_email.html", | ||
} | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,4 +52,3 @@ | |
} | ||
|
||
EMAIL_BACKEND = "anymail.backends.amazon_ses.EmailBackend" | ||
DEFAULT_FROM_EMAIL = "UOB Theatre <[email protected]>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.