overholt icon indicating copy to clipboard operation
overholt copied to clipboard

Overholt how to send the flask-security emails via Celery?

Open dukedougal opened this issue 10 years ago • 4 comments

In overholt I am trying to send the flask-security emails via Celery. I am following the instructions you have provided here:

https://github.com/mattupstate/flask-security/issues/194

I cannot find anywhere in Overholt to put the following code:

@security.send_mail_task def delay_flask_security_mail(msg): send_flask_mail.delay(msg)

Where should it live?

thanks

dukedougal avatar Aug 04 '14 11:08 dukedougal

why not core.py ?

mattupstate avatar Aug 04 '14 14:08 mattupstate

I'm having trouble with this also. It seems that wherever I put it, I get circular import problems.

mcs07 avatar Jan 19 '15 11:01 mcs07

+1 @mcs07 were you able to get around this problem?

rlam3 avatar Nov 29 '15 17:11 rlam3

Did anyone find an elegant solution for this?

derek-miller avatar Mar 25 '16 21:03 derek-miller