Skip to content

UnicodeDecodeError at commands/mockups.py #13

Open
yrik opened this Issue Jan 7, 2012 · 0 comments

1 participant

@yrik
yrik commented Jan 7, 2012

Traceback (most recent call last):
File "project/manage.py", line 14, in
execute_manager(settings)
File "/Users/cccccaaa/Desktop/django_projects/q5/.env/src/django/django/core/management/init.py", line 436, in execute_manager
utility.execute()
File "/Users/cccccaaa/Desktop/django_projects/q5/.env/src/django/django/core/management/init.py", line 359, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/Users/cccccaaa/Desktop/django_projects/q5/.env/src/django/django/core/management/base.py", line 196, in run_from_argv
self.execute(args, *options.dict)
File "/Users/cccccaaa/Desktop/django_projects/q5/.env/src/django/django/core/management/base.py", line 232, in execute
output = self.handle(args, *options)
File "/Users/cccccaaa/Desktop/django_projects/q5/.env/src/django/django/db/transaction.py", line 209, in inner
return func(args, *kwargs)
File "/Users/cccccaaa/Desktop/django_projects/q5/.env/src/mockups/mockups/management/commands/mockups.py", line 219, in handle
create(model, count, *kwargs)
File "/Users/cccccaaa/Desktop/django_projects/q5/.env/src/mockups/mockups/helpers.py", line 105, in create
return mockup.create(count)
File "/Users/cccccaaa/Desktop/django_projects/q5/.env/src/mockups/mockups/base.py", line 341, in create
instance = self.create_one(commit=commit)
File "/Users/cccccaaa/Desktop/django_projects/q5/.env/src/mockups/mockups/base.py", line 326, in create_one
committed=commit)
File "/Users/cccccaaa/Desktop/django_projects/q5/.env/src/django/django/dispatch/dispatcher.py", line 172, in send
response = receiver(signal=self, sender=sender, *
named)
File "/Users/cccccaaa/Desktop/django_projects/q5/.env/src/mockups/mockups/management/commands/mockups.py", line 95, in print_instance
self.format_output(instance),
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 26: ordinal not in range(128)
make: *** [fake_install] Error 1

It happend when I use unicode for some fields in my models.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.