Unable to find a locale path to store translations for file __init__.py

前端 未结 3 1152
终归单人心
终归单人心 2021-02-03 16:45

I\'m trying to translate a Django app. I created some strings with {% trans %} in my templates. However, when I execute the following command in my app folder, I re

3条回答
  •  情书的邮戳
    2021-02-03 17:08

    Turns out you need to create a locale folder first using mkdir locale. If you are running the command from within an app folder, you need a locale folder within that app folder.

提交回复
热议问题