First time here? Check out the FAQ!
0

Cannot call python manage.py compilemessages

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…

ProfGra's avatar
36
ProfGra
asked 2014-07-14 02:01:03 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

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

ProfGra's avatar
36
ProfGra
answered 2014-07-18 15:33:08 -0500
edit flag offensive 0 remove flag delete link

Comments

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 -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's avatar ProfGra (2014-07-18 16:19:00 -0500) 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's avatar ProfGra (2014-07-20 02:45:13 -0500) edit
add a comment see more comments