import os

# PROJECT_NAME = "UseFul"
# SERVER_HOST = os.environ.get("SERVER_HOST")

# # Secret key
# #SECRET_KEY = b"awubsyb872378t^*TG8y68&*&&*8y8yg9POB)*896ft7CR^56dfYUv"

# BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

# API_V1_STR = "/api/v1"

# # Token 60 minutes * 24 hours * 8 days = 8 days
# ACCESS_TOKEN_EXPIRE_MINUTES = 60 * 24 * 7

# # CORS
# BACKEND_CORS_ORIGINS = [
#     "http://localhost",
#     "http://localhost:4200",
#     "http://localhost:3000",
#     "http://localhost:8080",
# ]

# DATABASE_URI = f'postgres://{os.environ.get("POSTGRES_USER")}:' \
#                f'{os.environ.get("POSTGRES_PASSWORD")}@' \
#                f'{os.environ.get("POSTGRES_HOST")}:5432/' \
#                f'{os.environ.get("POSTGRES_DB")}'

# USERS_OPEN_REGISTRATION = True

# EMAILS_FROM_NAME = PROJECT_NAME
# EMAIL_RESET_TOKEN_EXPIRE_HOURS = 48
# EMAIL_TEMPLATES_DIR = "src/email-templates/build"

# Email
# SMTP_TLS = os.environ.get("SMTP_TLS")
# SMTP_PORT = os.environ.get("SMTP_PORT")
# SMTP_HOST = os.environ.get("SMTP_HOST")
# SMTP_USER = os.environ.get("SMTP_USER")
# SMTP_PASSWORD = os.environ.get("SMTP_PASSWORD")
# EMAILS_FROM_EMAIL = os.environ.get("EMAILS_FROM_EMAIL")

# EMAILS_ENABLED = SMTP_HOST and SMTP_PORT and EMAILS_FROM_EMAIL
# EMAIL_TEST_USER = "djwoms@gmail.com"

# APPS_MODELS = [
#     "src.app.user.models",
#     "src.app.auth.models",
#     "src.app.board.models",
#     "src.app.blog.models",
#     "aerich.models",
# ]
