in settings.py
add following line on top
#-*- encoding: utf-8 -*-
#########################################
In settings.py
in MIDDLEWARE_CLASSES
'django.contrib.sessions.middleware.SessionMiddleware’,
'django.middleware.locale.LocaleMiddleware’,
'django.middleware.common.CommonMiddleware’,
#########################################
in settings.py
LANGUAGE_CODE = 'zh-hans’
USE_I18N = True
USE_L10N = True
#########################################
in settings.py
LOCALE_PATHS = ( BASE_DIR + '/locale’,)
LANGUAGES = (
('zh-hans', (u'简体中文')),
('en', ('English')),)
#########################################
in project root
mkdir locale./manage.py makemessages -l en
#########################################
in urls.py
url(r'^i18n/', include('django.conf.urls.i18n')),
#########################################
in base template, in proper position
{% include "common/languages_neo.html” %}
#########################################