LoginSignup
1
0

django; OSError: No translation files found for default language

Last updated at Posted at 2024-03-04

タイトルの通り。

OSError: No translation files found for default language

これはDjangoで言語設定が間違っているときのエラー

この公式ドキュメントから飛べる
https://docs.djangoproject.com/en/5.0/ref/settings/

このページにリストが書いてある
http://www.i18nguy.com/unicode/language-identifiers.html

例えば、settings.pyの言語設定で

LANGUAGE_CODE = 'jp' # NG

とするとエラーになる。正しくは次の通り。

LANGUAGE_CODE = 'ja' # OK => 日本語
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0