From d84f70214ab1a178827a6f400339c1a414231ce5 Mon Sep 17 00:00:00 2001 From: Arne Schauf <git@asw.io> Date: Tue, 29 Apr 2025 14:08:23 +0200 Subject: [PATCH] Add production settings module Introduce a new `prod.py` settings file for the production environment. This file disables debug mode and sets up a console email backend. It also attempts to import local settings, if available. --- feo_homepage/settings/prod.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 feo_homepage/settings/prod.py diff --git a/feo_homepage/settings/prod.py b/feo_homepage/settings/prod.py new file mode 100644 index 0000000..2665846 --- /dev/null +++ b/feo_homepage/settings/prod.py @@ -0,0 +1,13 @@ +from .base import * + + +DEBUG = False +TEMPLATE_DEBUG = True + +EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' + + +try: + from .local import * +except ImportError: + pass