【发布时间】:2016-11-22 09:48:31
【问题描述】:
我是韩国人,在我的 Django 项目中使用 django-all-auth。
我检查了django-all-auth中有韩文.po文件。
但是所有的表达都是英语,不是韩语。
我只是跟着doc中的安装部分和配置部分。
这是我的settings.py
LANGUAGE_CODE = 'ko-kr'
TIME_ZONE = 'Asia/Seoul'
USE_I18N = True
USE_L10N = True
USE_TZ = True
我错过了什么吗?
【问题讨论】:
-
你检查过你的 urlpatterns 是 118n 吗? url(r'^accounts/', include('allauth.urls')), 部分包含在哪里?
-
@ShashishekharHasabnis 感谢您的建议。我参考您的建议并编辑如下网址代码:gist.github.com/rightx2/7a15208cb24e4c88b6c23a67b4543964。当我访问 singup 页面时,url 显示如下:localhost:8000/ko-kr/accounts/login 但语言仍然是英文。 (其他页面也是英文的)
标签: django django-allauth