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…

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
ProfGra's avatar
36
ProfGra
asked 10 years ago

Comments

see more comments

1 Answer

1

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

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
ProfGra's avatar
36
ProfGra
answered 10 years ago
link

Comments

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

Evgeny's avatar Evgeny (10 years ago)

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 (10 years ago)

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 (10 years ago)
see more comments