-
Notifications
You must be signed in to change notification settings - Fork 335
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Having problem on django-mailer on using with djoser #144
Comments
It's not at all clear to me that this is a bug in django-mailer. It rather looks like a bug in "templated_mail" due to it creating EmailMessage objects in some non standard way that means they can't be pickled. If you can provide a reduced test case that shows an issue in django-mailer that would be helpful. |
@spookylukey thanks for replying. This is what Djoser uses django-templated-mail and It works only when I remove the request https://github.com/pawanpaudel93/django-mailer/blob/master/src/mailer/models.py#L94 while pickling the email on django-mailer. So, there is a problem picking the request. Can you take a look at why the pickling error is occurring ?? @spookylukey |
OK, it's like I thought. You need to file a bug with |
@spookylukey Thank you very much for your time and help and also thanks for the great Django app. |
I'm going to re-open this, for the sake of anyone searching for the issue, although I don't intend to do anything about it in django-mailer itself. |
See sunscrapers/django-templated-mail#29 which may resolve the issue. |
I get the following error on using django-mailer with djoser on creation of users using the djoser. Seems that it is unable to pickle the request <rest_framework.request.Request: POST '/auth/users/'>.
The text was updated successfully, but these errors were encountered: