Ask Your Question
0

Cannot call python manage.py compilemessages

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

ProfGra gravatar image

Hi,
There is no manage.py 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 setup.py with the develop command…

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

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

ProfGra gravatar image

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

edit flag offensive delete link more

Comments

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 -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 gravatar imageProfGra ( 2014-07-18 16:19:00 -0600 )edit

OK, I found rebuildlocales.py 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: http://askbot.org/doc/management-commands.html (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 -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

Stats

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

Seen: 1,356 times

Last updated: Jul 18 '14