Configure email backend for local development and update NGINX HTTPS port in environment settings

This commit is contained in:
Ross
2025-12-15 12:44:57 +00:00
parent 00b736d8d6
commit 03b23b9178
3 changed files with 8 additions and 5 deletions
+4 -1
View File
@@ -20,4 +20,7 @@ GUNICORN_LOGLEVEL=info
# Nginx host ports for local development (override prod defaults) # Nginx host ports for local development (override prod defaults)
NGINX_HTTP_PORT=8080 NGINX_HTTP_PORT=8080
# Pick a non-privileged HTTPS port to avoid conflicts with host installs # Pick a non-privileged HTTPS port to avoid conflicts with host installs
NGINX_HTTPS_PORT=8444 NGINX_HTTPS_PORT=8444
# Use console email backend for local development to avoid sending real mail
EMAIL_BACKEND=django.core.mail.backends.console.EmailBackend
@@ -7,9 +7,9 @@
<tr><th>Name</th><th>Email</th></tr> <tr><th>Name</th><th>Email</th></tr>
</thead> </thead>
<tbody> <tbody>
{% for r in rows %} {% for r in rows %}
<tr><td>{{ r.name }}</td><td>{{ r.email }}</td></tr> <tr><td>{{ r.name }}</td><td>{{ r.email }}</td></tr>
{% endfor %} {% endfor %}
</tbody> </tbody>
</table> </table>
</div> </div>
+1 -1
View File
@@ -325,7 +325,7 @@ TINYMCE_DEFAULT_CONFIG = {
DEFAULT_AUTO_FIELD = "django.db.models.AutoField" DEFAULT_AUTO_FIELD = "django.db.models.AutoField"
EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend" EMAIL_BACKEND = os.environ.get("EMAIL_BACKEND", "django.core.mail.backends.smtp.EmailBackend")
# SENDGRID_API_KEY = os.getenv('SENDGRID_API_KEY') # SENDGRID_API_KEY = os.getenv('SENDGRID_API_KEY')
SENDGRID_API_KEY = ( SENDGRID_API_KEY = (