feat: remove unused images and update email functionality

- Deleted multiple unused image files from the static media directory.
- Enhanced email sending functionality by adding a new method `send_hemail` for sending HTML emails.
- Updated the `enviar_correo_bienvenida` task to use the new HTML email method.
- Added a new RGPD (General Data Protection Regulation) privacy policy page template.
- Updated URL routing to include the new RGPD page.
- Added a view function for rendering the RGPD page.
This commit is contained in:
2026-03-20 09:18:02 +01:00
parent 2439916d14
commit 351c9cd955
95 changed files with 163 additions and 4 deletions
Binary file not shown.
+11
View File
@@ -0,0 +1,11 @@
from jinja2 import Environment
from django.urls import reverse
from django.templatetags.static import static
def environment(**options):
env = Environment(**options)
env.globals.update({
'static': static,
'url': reverse,
})
return env
+8
View File
@@ -111,6 +111,14 @@ TEMPLATES = [
],
},
},
{
'BACKEND': 'django.template.backends.jinja2.Jinja2',
'DIRS': [BASE_DIR / 'templates/jinja2'],
'APP_DIRS': True,
'OPTIONS': {
'environment': 'proyecto.jinja2.environment',
},
}
]
WSGI_APPLICATION = 'proyecto.wsgi.application'