开发者

Django-lettuce: where to keep language file

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜