Support email sending via SMTP, configure static/media handling, set correct timezone, enable Swagger UI, and add external access routes.
19 lines
408 B
Python
19 lines
408 B
Python
"""generated with djinit"""
|
|
|
|
import os
|
|
from pathlib import Path
|
|
|
|
import environ
|
|
from django.core.wsgi import get_wsgi_application
|
|
|
|
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"),
|
|
)
|
|
|
|
application = get_wsgi_application()
|