Ask Your Question

Cannot call python compilemessages

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

ProfGra's avatar

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 -0600

ProfGra's avatar

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's avatar Evgeny  ( 2014-07-18 15:40:41 -0600 )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's avatar ProfGra  ( 2014-07-18 16:19:00 -0600 )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's avatar ProfGra  ( 2014-07-20 02:45:13 -0600 )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 -0600

Seen: 3,547 times

Last updated: Jul 18 '14