Ask Your Question

Cannot call python compilemessages

asked 2014-07-14 02:01:03 -0500

ProfGra gravatar image

There is no in the repo. I understand that askbot-setup creates one in the django app dir, but then commands like compilemessages complain with this message:
CommandError: This script should be run from the Django Git checkout or your project or app tree, or with the settings module specified.
How can I launch commands like makemessages, compilemessages for my checkout?
I realise that I may not have run python with the develop command…

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2014-07-18 15:33:08 -0500

ProfGra gravatar image

I changed directory to askbot-devel/askbot, then ran compilemessages.

edit flag offensive delete link more


Instead of makemessages, please use jinja2_makemessages - it's a command in the askbot commands directory.

Evgeny gravatar imageEvgeny ( 2014-07-18 15:40:41 -0500 )edit

Sorry @Evgeny but I still need some help. Could you tell me the exact command that you call, and from which dir? Thanks for the hard work on askbot.

ProfGra gravatar imageProfGra ( 2014-07-18 16:19:00 -0500 )edit

OK, I found and others in askbot/bin with some hints. Now it's ok, I had to turn of self tests. Even if there is some info in the docs: (at the end), I'll try to provide a page in the docs dedicated to translators.

ProfGra gravatar imageProfGra ( 2014-07-20 02:45:13 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-07-14 02:01:03 -0500

Seen: 1,450 times

Last updated: Jul 18 '14