Updating string format synatx part 3

This commit is contained in:
Mouse Reeve
2021-09-20 16:44:59 -07:00
parent cf3157a3b5
commit ea303fb285
6 changed files with 22 additions and 17 deletions

View File

@ -23,9 +23,7 @@ EMAIL_HOST_USER = env("EMAIL_HOST_USER")
EMAIL_HOST_PASSWORD = env("EMAIL_HOST_PASSWORD")
EMAIL_USE_TLS = env.bool("EMAIL_USE_TLS", True)
EMAIL_USE_SSL = env.bool("EMAIL_USE_SSL", False)
DEFAULT_FROM_EMAIL = "admin@{:s}".format(
env("DOMAIN")
) # pylint: disable=consider-using-f-string
DEFAULT_FROM_EMAIL = f"admin@{DOMAIN}"
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))