Thursday, August 1, 2013

How to display Chinese in django webpage

HELLO:
    I am a new django user
    I want to display Chinese in my webpage
but it can't


this is my settings.py:
---------------------------------------------

TIME_ZONE = 'Asia/Shanghai'
USE_TZ = True
USE_I18N = True
USE_L10N = True
LANGUAGE_CODE = 'zh-cn'
LANGUAGES = (
    ('zh_CN', gettext('Simplified Chinese')),
    ('en', gettext('English')),
)
----------------------------------------------
    Additional, I using a app "zinnia", all file
are contained:".mo, .po"
    When I run:python manage.py runserver
The webpage is always display English.

    Is it something wrong in settings.py?
 

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment