latapp 9 сар өмнө
parent
commit
6467443f07
1 өөрчлөгдсөн 8 нэмэгдсэн , 8 устгасан
  1. 8 8
      config/mails.py

+ 8 - 8
config/mails.py

@@ -2,13 +2,13 @@ from config.settings import APP_NAME, CURRENT_URL
 
 
 REGISTER_MAIL = {
-    "subject": f"Bienvenido a {APP_NAME} - Confirma tu registro",
+    "subject": "Bienvenido a " + APP_NAME + " - Confirma tu registro",
     "body": """
 <html>
 <head>
     <meta charset="UTF-8">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
-    <title>¡Bienvenido a """+APP_NAME+"""!</title>
+    <title>¡Bienvenido a {app_name}!</title>
     <style>
         body {{
             margin: 0;
@@ -224,20 +224,20 @@ REGISTER_MAIL = {
             <!-- Header -->
             <div class="header">
                 <h1>¡Hola {name}!</h1>
-                <p>Bienvenido a """+APP_NAME+"""</p>
+                <p>Bienvenido a {app_name}</p>
             </div>
             
             <!-- Content -->
             <div class="content">
                 <!-- Welcome Message -->
                 <div class="welcome-message">
-                    <h2>Te damos la bienvenida a """+APP_NAME+"""</h2>
+                    <h2>Te damos la bienvenida a {app_name}</h2>
                     <p>Tu registro ha sido exitoso. <br>Estamos emocionados de tenerte con nosotros. Para completar tu registro, necesitas crear tu PIN de seguridad.</p>
                 </div>
                 
                 <!-- Benefits Section -->
                 <div class="benefits-section">
-                    <h3 class="benefits-title">¿Qué puedes hacer con """+APP_NAME+"""?</h3>
+                    <h3 class="benefits-title">¿Qué puedes hacer con {app_name}?</h3>
                     <ul class="benefits-list">
                         <li>Realizar pedidos de forma rápida y sencilla</li>
                         <li>Acceder a promociones exclusivas</li>
@@ -257,7 +257,7 @@ REGISTER_MAIL = {
                 
                 <!-- Security Note -->  
                 <div class="security-note">
-                    <p>🔒 Tu PIN será tu clave personal para acceder de forma segura a """+APP_NAME+"""}</p>
+                    <p>🔒 Tu PIN será tu clave personal para acceder de forma segura a {app_name}</p>
                 </div>
                 
                 <!-- Website Section -->
@@ -439,7 +439,7 @@ PIN_RECOVERY_MAIL = {
                                 <tr>
                                     <td style="text-align: center; margin-bottom: 32px;">
                                         <h2 style="color: #101419; font-size: 24px; margin: 0 0 12px 0; font-weight: bold;">¿Olvidaste tu PIN?</h2>
-                                        <p style="color: #6b7280; font-size: 16px; line-height: 1.6; margin: 0;">No te preocupes, puedes crear un nuevo PIN de acceso a """+APP_NAME+""".</p>
+                                        <p style="color: #6b7280; font-size: 16px; line-height: 1.6; margin: 0;">No te preocupes, puedes crear un nuevo PIN de acceso a {app_name}.</p>
                                     </td>
                                 </tr>
                             </table>
@@ -497,7 +497,7 @@ PIN_RECOVERY_MAIL = {
                                         <p style="color: #374151; font-size: 14px; line-height: 1.5; margin: 0;">
                                             1. Haz clic en "Crear Nuevo PIN"<br>
                                             2. Elige un PIN fácil de recordar pero seguro<br>
-                                            3. Ingresa a """+APP_NAME+""" con tu nuevo PIN<br>
+                                            3. Ingresa a {app_name} con tu nuevo PIN<br>
                                             4. ¡Disfruta de todos nuestros beneficios!
                                         </p>
                                     </td>