Cannot run makemessages Follow
Hi all, I am trying to learn how to use the django internationalization functionality and I have written a very simple program with just one translation string:
from django.utils.translation import ugettext as _
from django.http import HttpResponse
def my_view(request):
output = _("Welcome to my site.")
return HttpResponse(output)
I am trying to run the makemessages function from the Run manage.py task option but I get this error:
/usr/bin/python2.6 /opt/pycharm/helpers/pycharm/django_manage.py makemessages
pycharm django settings imported
Error: Type 'django_manage.py help makemessages' for usage.
Process finished with exit code 1
Can anyone help? Cheers, Rujero
Please sign in to leave a comment.
Hello Ruggero,
This is a bug in PyCharm. The makemessages command should ask for additional
parameters, and in the current version it does not do so. Please run makemessages
from the command line for the time being.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"