def __init__(self, content=b'', *args, **kwargs): super(HttpResponse, self).__init__(*args, **kwargs) # Content is a bytestring. See the `content` property methods. self.content = content
The wierd part is /// content=b''///
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django...@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/02a0b8a6-e4b9-4d68-bc94-1fde59f60f08%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
'b' or 'B'; they produce an
instance of the bytes type instead of the str type. They
may only contain ASCII characters; bytes with a numeric value of 128 or greater
must be expressed with escapes."I have a doubt....
As per your given link i guess it should be like //// content=' b ' ////
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django...@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/49b79dcb-ea76-43b6-9dd7-030a9757e310%40googlegroups.com.