django - I18n stopped working -
django - I18n stopped working -
i utilize script compile django.po , working:
#!/bin/sh django-admin.py makemessages -a django-admin.py compilemessages
suddenly stopped working, error:
$ i18n.sh traceback (most recent phone call last): file "c:/python34/scripts/django-admin.py", line 5, in <module> management.execute_from_command_line() file "c:\python34\lib\site-packages\django\core\management\__init__.py", line 385, in execute_from_command_line utility.execute() file "c:\python34\lib\site-packages\django\core\management\__init__.py", line 377, in execute self.fetch_command(subcommand).run_from_argv(self.argv) file "c:\python34\lib\site-packages\django\core\management\base.py", line 288, in run_from_argv self.execute(*args, **options.__dict__) file "c:\python34\lib\site-packages\django\core\management\base.py", line 338, in execute output = self.handle(*args, **options) file "c:\python34\lib\site-packages\django\core\management\base.py", line 533, in handle homecoming self.handle_noargs(**options) file "c:\python34\lib\site-packages\django\core\management\commands\makemessag es.py", line 283, in handle_noargs potfiles = self.build_potfiles() file "c:\python34\lib\site-packages\django\core\management\commands\makemessag es.py", line 299, in build_potfiles file_list = self.find_files(".") file "c:\python34\lib\site-packages\django\core\management\commands\makemessag es.py", line 358, in find_files ignored_roots = [os.path.normpath(p) p in (settings.media_root, settings .static_root)] file "c:\python34\lib\site-packages\django\core\management\commands\makemessag es.py", line 358, in <listcomp> ignored_roots = [os.path.normpath(p) p in (settings.media_root, settings .static_root)] file "c:\python34\lib\ntpath.py", line 491, in normpath if path.startswith(special_prefixes): attributeerror: 'nonetype' object has no attribute 'startswith' processing file django.po in c:\users\debora\workspace\opti\opti2.0\project\loca le\pt_br\lc_messages
anyone has got ideas?
i don't know caused this. updated django 1.7 1.7.1, installed packages unrelated, that's remember doing have affected.
just set static_root
in settings.py file.
this bug in django 1.7.1 , should removed in django 1.7.2
(since django 1.6.2 static_root
defaults none
, before ''
.)
django django-i18n
Comments
Post a Comment