장고 cms에서 배포시에 언어 에러가 납니다 ㅠㅠ
글쓴이: gookenhaim / 작성시간: 일, 2019/06/09 - 1:15오후
파이썬에서 장고 cms라는, divio회사의 cms를 쓰려고 합니다.
근데 배포를 하려고 해서 이제 로컬 서버에 연결하려고 하는데 이렇게 에러가 납니다.
TypeError at /
string indices must be integers
Exception Type: TypeError
Exception Value:
string indices must be integers
저의 settings.py에는
이렇게되어 있구요
{
'code': 'ko',
'name': gettext('ko'),
'redirect_on_fallback': True,
'public': True,
'hide_untranslated': False,
}이게 장고 cms언어 설정 관련한 에러같습니다.
page not found Using the URLconf defined in djcms_r.urls, Django tried these URL patterns, in this order:
^media/(?P.*)$
^static\/(?P.*)$
^sitemap\.xml$
^ko/ ^admin/
^ko/ ^ ^cms_login/$ [name='cms_login']
^ko/ ^ ^cms_wizard/
^ko/ ^ ^(?P[0-9A-Za-z-_.//]+)/$ [name='pages-details-by-slug']
^ko/ ^ ^$ [name='pages-root']
The current path, /ko/, didn't match any of these.
이건 저의 언어 설정인데 어떻게 고쳐야 할 지 모르겠습니다 ㅠㅠ
미리 답변 감사드립니다!
LANGUAGES = (
[('en', 'en-us')]
# [('en-us','en')]
## Customize this
#('ko', gettext('ko')),
)
CMS_LANGUAGES = {
## Customize this
1: [
{
'code': 'en',
'name': gettext('English'),
'fallbacks': ['de', 'fr'],
'public': True,
'hide_untranslated': True,
'redirect_on_fallback':False,
},
""" {
'code': 'ko',
'name': gettext('ko'),
'redirect_on_fallback': True,
'public': True,
'hide_untranslated': False,
},"""
],
'default': {
'redirect_on_fallback': True,
'public': True,
'hide_untranslated': False,
},
}
LANGUAGE_CODE = 'en'Forums:


댓글 달기