File tree 4 files changed +6
-6
lines changed
4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
import os
2
2
from bs4 import BeautifulSoup
3
3
from premailer import Premailer
4
- from drf_friend .path import base_path
4
+ from django_petra .path import base_path
5
5
6
6
def inline_css (html_code ):
7
7
# Parse the HTML code
Original file line number Diff line number Diff line change 1
1
from django .core .mail import EmailMultiAlternatives
2
2
from django .template .loader import render_to_string
3
3
from email .mime .image import MIMEImage
4
- from drf_friend .mailer .inline_css import inline_css
4
+ from django_petra .mailer .inline_css import inline_css
5
5
6
6
class SendMail :
7
7
"""
Original file line number Diff line number Diff line change 1
- from drf_friend .project .tasks import drf_mail
1
+ from django_petra .project .tasks import petra_mail
2
2
3
3
class SendMailQueue :
4
4
def __init__ (self ):
@@ -46,4 +46,4 @@ def send(self):
46
46
Returns:
47
47
None
48
48
"""
49
- drf_mail .apply_async (args = [self .email ], countdown = self .email ["delay" ])
49
+ petra_mail .apply_async (args = [self .email ], countdown = self .email ["delay" ])
Original file line number Diff line number Diff line change 1
1
from celery import shared_task
2
- from drf_friend .mailer .send_mail import SendMail
2
+ from django_petra .mailer .send_mail import SendMail
3
3
4
4
@shared_task ()
5
- def drf_mail (email_data ):
5
+ def petra_mail (email_data ):
6
6
mail = SendMail ()
7
7
mail .from_email (email_data ['from' ])
8
8
mail .to (email_data ['to' ])
You can’t perform that action at this time.
0 commit comments