开发者

Django-lettuce: where to keep language file

开发者 https://www.devze.com 2023-04-04 02:59 出处:网络
I\'ve added lettuce into my django project, where to keep the languages.py file in django project instead of modifying lettuce itself?

I've added lettuce into my django project, where to keep the languages.py file in django project instead of modifying lettuce itself?

Sulta开发者_高级运维n


I do not know of lettuce, but I am guessing that you can include your file languages.py anywhere python can find it.

I do this by appending the directory containing my files into sys.path. You could overwrite PYTHONPATH instead. A directory containing python code should have a __init__.py file.

I am not sure if you already tried the above. If you did, you can ignore my answer.

0

精彩评论

暂无评论...
验证码 换一张
取 消