UnicodeDecodeError in python manage.py flush

62 views
Skip to first unread message

Edgar Reyes

unread,
Jan 20, 2014, 6:29:55 PM1/20/14
to django...@googlegroups.com
Hi, I'm looking in google search about this error but I didn't find anything similar.

Any suggestions ?

python manage.py flush
You have requested a flush of the database.
This will IRREVERSIBLY DESTROY all data currently in the 'cbbc' database,
and return each table to the state it was in after syncdb.
Are you sure you want to do this?

    Type 'yes' to continue, or 'no' to cancel: yes
Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/local/pythonenv/DJANGO_1.6_py_2.7.3/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
    utility.execute()
  File "/usr/local/pythonenv/DJANGO_1.6_py_2.7.3/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/pythonenv/DJANGO_1.6_py_2.7.3/local/lib/python2.7/site-packages/django/core/management/base.py", line 249, in run_from_argv
    stderr.write('%s: %s' % (e.__class__.__name__, e))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 343: ordinal not in range(128)

Sam Lai

unread,
Jan 21, 2014, 12:29:38 AM1/21/14
to django-users
It looks like you have named one of your model classes with a name
that contains a non-ASCII character. Stick with class names with only
a-z, A-Z, 0-9 characters and see if that helps.
> --
> 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...@googlegroups.com.
> To post to this group, send email to django...@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/4c119cf8-594f-4ba1-8005-3d520ff4d9d7%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
Reply all
Reply to author
Forward
0 new messages