Changes between Initial Version and Version 1 of Ticket #26731, comment 3


Ignore:
Timestamp:
Jun 8, 2016, 3:26:31 PM (9 years ago)
Author:
Darren Hobbs

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #26731, comment 3

    initial v1  
    1 The string came from the db. The actual error came from django/core/management/base.py", line 111, in write
     1The string came from the db. The actual error came from django/core/management/base.py", line 111, in write.
     2
     3I fixed my specific issue by importing unicode literals and using `self.stdout.write('{}'.format(unicode_string))`. I'm afraid my understanding of python's unicode string handling isn't great. Perhaps the answer is to update the documentation to suggest using unicode literals in management commands - the alternative is a nasty surprise waiting to happen in production (as it did to me!)
Back to Top