feat(config): add email backend and update settings for production

Support email sending via SMTP, configure static/media handling, set correct timezone, enable Swagger UI, and add external access routes.
This commit is contained in:
sankalp committed 2026-06-28 14:15:22 +05:45
1 parent 9d5ebcfcde
commit 89adfe89c5
6 files changed
+643 -170

No files matched your search

+6 -2
View File
@@ -2,6 +2,7 @@
import os
from pathlib import Path
import environ
from django.core.wsgi import get_wsgi_application
@@ -9,6 +10,9 @@ env_path = Path(__file__).resolve().parent.parent / ".env"
env = environ.Env()
environ.Env.read_env(env_path)
os.environ.setdefault("DJANGO_SETTINGS_MODULE", env("DJANGO_SETTINGS_MODULE", default="config.settings.production"))
os.environ.setdefault(
"DJANGO_SETTINGS_MODULE",
env("DJANGO_SETTINGS_MODULE", default="config.settings.production"),
)
application = get_wsgi_application()
application = get_wsgi_application()