2011年01月10日 星期一 17:22
执行:python manage.py validate
显示:
Traceback (most recent call last):
File "manage.py", line 11, in <module>
execute_manager(settings)
File "E:\Python26\lib\site-packages\django\core\management\__init__.py", line
438, in execute_manager
utility.execute()
File "E:\Python26\lib\site-packages\django\core\management\__init__.py", line
379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "E:\Python26\lib\site-packages\django\core\management\base.py", line 191,
in run_from_argv
self.execute(*args, **options.__dict__)
File "E:\Python26\lib\site-packages\django\core\management\base.py", line 209,
in execute
translation.activate('en-us')
File "E:\Python26\lib\site-packages\django\utils\translation\__init__.py", lin
e 66, in activate
return real_activate(language)
File "E:\Python26\lib\site-packages\django\utils\functional.py", line 55, in _
curried
return _curried_func(*(args+moreargs), **dict(kwargs, **morekwargs))
File "E:\Python26\lib\site-packages\django\utils\translation\__init__.py", lin
e 36, in delayed_loader
return getattr(trans, real_name)(*args, **kwargs)
File "E:\Python26\lib\site-packages\django\utils\translation\trans_real.py", l
ine 193, in activate
_active[currentThread()] = translation(language)
File "E:\Python26\lib\site-packages\django\utils\translation\trans_real.py", l
ine 176, in translation
default_translation = _fetch(settings.LANGUAGE_CODE)
File "E:\Python26\lib\site-packages\django\utils\translation\trans_real.py", l
ine 159, in _fetch
app = import_module(appname)
File "E:\Python26\lib\site-packages\django\utils\importlib.py", line 35, in im
port_module
__import__(name)
ValueError: Empty module name
会的教一下吧,谢谢了
2011年01月10日 星期一 20:25
打开settings.py看看配置是不是有单元素的元组忘追加逗号了 ..
2011年01月10日 星期一 21:46
谢谢楼上的,应当是没有,之前用的是1.2.4,后来SVN了一下最新的主干版本1.3,OK了,不知道为什么了,呵呵
2011年01月11日 星期二 11:36
哦,。。版本在确是个问题..00
Zeuux © 2024
京ICP备05028076号