comparison downloads/management/commands/dlwgetcat.py @ 875:d5d8e90d08b5

Merge with upstream.
author Brian Neal <bgneal@gmail.com>
date Thu, 25 Dec 2014 17:28:48 -0600
parents b59c154d0163
children bd59a599b9a3
comparison
equal deleted inserted replaced
873:9676833dfdca 875:d5d8e90d08b5
46 'downloads': downloads, 46 'downloads': downloads,
47 'domain': Site.objects.get_current().domain, 47 'domain': Site.objects.get_current().domain,
48 'MEDIA_URL': settings.MEDIA_URL, 48 'MEDIA_URL': settings.MEDIA_URL,
49 }) 49 })
50 50
51 # encode it ourselves since it can fail if you try to redirect output to 51 self.stdout.write(output)
52 # a file and any of the content is not ASCII...
53 self.stdout.write(output.encode('utf-8'))