Note that there are some explanatory texts on larger screens.

plurals
  1. PODjango Unicode error in Filed name
    primarykey
    data
    text
    <p>I'd like to assign a human-readble name in Japanese that appears in Admin site.</p> <p>so, simply I'd like to write like this way:</p> <pre><code>class Poll(models.Model): question = models.CharField(max_length=200) pub_date = models.DateTimeField(u'投稿日時') </code></pre> <p>But then it says:</p> <pre><code>UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 57: ordinal not in range(128) </code></pre> <p>How can I use unicode like Japanese in this case ?</p> <p>full traceback:</p> <pre><code>python manage.py syncdb Traceback (most recent call last): File "manage.py", line 10, in &lt;module&gt; execute_from_command_line(sys.argv) File "/Users/me/.virtualenvs/env/lib/python2.7/site-packages/django/core/management/__init__.py", line 399, in execute_from_command_line utility.execute() File "/Users/me/.virtualenvs/env/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/Users/me/.virtualenvs/env/lib/python2.7/site-packages/django/core/management/base.py", line 242, in run_from_argv self.execute(*args, **options.__dict__) File "/Users/me/.virtualenvs/env/lib/python2.7/site-packages/django/core/management/base.py", line 284, in execute self.validate() File "/Users/me/.virtualenvs/env/lib/python2.7/site-packages/django/core/management/base.py", line 314, in validate raise CommandError("One or more models did not validate:\n%s" % error_text) UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 57: ordinal not in range(128) </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload