Re: Why do my django email error reports have weird characters in the subject?

2019-07-19 Thread Tal
Ended up being related to the other problem I was having, where I was 
getting 2 emails for every exception, and both problems were caused by 
enabled django-channels.

Disabling django channels, or running django-channels in production with 
daphne, rather than using the channels ASGI development server, everything 
works - I only get one email, and its formatting is fine. The channels 
development server though sends me 2 emails if an exception is thrown, and 
one of the emails has those weird characters.

If anyone knows a way to fix this, let me know. If not, I'll just have to 
ignore it. I guess it doesn't really bother me if it doesn't happen in 
production.


On Friday, July 19, 2019 at 11:31:26 AM UTC-6, Tal wrote:
>
> Is this possibly related to the fact that I have django-channels enabled?
> I'll try disabling it to see if it's related.
>
> On Friday, July 19, 2019 at 9:46:20 AM UTC-6, Tal wrote:
>>
>> I setup my django 2.2.3 project to use gmail to send emails out.
>>
>> I also have it configured to send me emails about any exceptions that 
>> occur.
>>
>> To test it, I made a view with:
>>
>>
>> float('a')
>>
>> It works, but there are weird characters in the subject of the email I 
>> receive, and in the first part of the message. I think those are bash color 
>> code characters.
>>
>> Why am I seeing them? Is this a Django bug? Any way to fix it?
>>
>>
>>
>>
>> [image: Screen Shot 2019-07-19 at 9.38.26 AM.png]
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b42fd92c-fb0a-4dc9-97c8-d57b55f7b01d%40googlegroups.com.


Re: Why do my django email error reports have weird characters in the subject?

2019-07-19 Thread Tal
Is this possibly related to the fact that I have django-channels enabled?
I'll try disabling it to see if it's related.

On Friday, July 19, 2019 at 9:46:20 AM UTC-6, Tal wrote:
>
> I setup my django 2.2.3 project to use gmail to send emails out.
>
> I also have it configured to send me emails about any exceptions that 
> occur.
>
> To test it, I made a view with:
>
>
> float('a')
>
> It works, but there are weird characters in the subject of the email I 
> receive, and in the first part of the message. I think those are bash color 
> code characters.
>
> Why am I seeing them? Is this a Django bug? Any way to fix it?
>
>
>
>
> [image: Screen Shot 2019-07-19 at 9.38.26 AM.png]
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f2067717-a6da-486c-a80b-e4c21a0b5b57%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Why do my django email error reports have weird characters in the subject?

2019-07-19 Thread Tal


I setup my django 2.2.3 project to use gmail to send emails out.

I also have it configured to send me emails about any exceptions that occur.

To test it, I made a view with:


float('a')

It works, but there are weird characters in the subject of the email I 
receive, and in the first part of the message. I think those are bash color 
code characters.

Why am I seeing them? Is this a Django bug? Any way to fix it?




[image: Screen Shot 2019-07-19 at 9.38.26 AM.png]

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/25ab432a-7dc8-4ac0-8751-d0c039bbc9fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.