Skip to content

Commit 1f4c231

Browse files
committed
fix: correct minor typos in code
1 parent cc78d0e commit 1f4c231

File tree

2 files changed

+24
-25
lines changed

2 files changed

+24
-25
lines changed

app/config.py

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,27 @@
11
import os
22

3+
from fastapi_mail import ConnectionConfig
4+
# flake8: noqa
35

4-
STATIC_ABS_PATH = os.path.abspath("static")
6+
7+
# DATABASE
8+
DEVELOPMENT_DATABASE_STRING = "sqlite:///./dev.db"
9+
10+
# MEDIA
11+
MEDIA_DIRECTORY = 'media'
12+
PICTURE_EXTENSION = '.png'
13+
AVATAR_SIZE = (120, 120)
14+
15+
email_conf = ConnectionConfig(
16+
MAIL_USERNAME=os.getenv("MAIL_USERNAME") or "user",
17+
MAIL_PASSWORD=os.getenv("MAIL_PASSWORD") or "password",
18+
MAIL_FROM=os.getenv("MAIL_FROM") or "[email protected]",
19+
MAIL_PORT=587,
20+
MAIL_SERVER="smtp.gmail.com",
21+
MAIL_TLS=True,
22+
MAIL_SSL=False,
23+
USE_CREDENTIALS=True,
24+
)
25+
26+
# PATHS
27+
STATIC_ABS_PATH = os.path.abspath("static")

app/config.py.example

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)