django-admin.py startproject testprj:创建空文件夹

时间:2014-12-29 04:51:59

标签: python django

我是django的新手。我知道这是一个愚蠢的问题,但我长期坚持这一点。我运行命令使用命令'django-admin.py startproject testprj'创建一个django项目。我创建了一个名为testprj的文件夹,但在文件夹中没有创建。

在命令提示符中没有显示错误。我犯了哪个错误?

当我尝试运行下载的项目时,它显示以下错误

D:\ \tracker\tracker>python manage.py runserver
Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "C:\Python27\lib\site-packages\django\core\management\__init
338, in execute_from_command_line
    utility.execute()
  File "C:\Python27\lib\site-packages\django\core\management\__init
330, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "C:\Python27\lib\site-packages\django\core\management\base.p
 in run_from_argv
    self.execute(*args, **cmd_options)
  File "C:\Python27\lib\site-packages\django\core\management\comman
py", line 50, in execute
    super(Command, self).execute(*args, **options)
  File "C:\Python27\lib\site-packages\django\core\management\base.p
 in execute
    translation.activate('en-us')
  File "C:\Python27\lib\site-packages\django\utils\translation\__in
e 146, in activate
    return _trans.activate(language)
  File "C:\Python27\lib\site-packages\django\utils\translation\tran
ine 219, in activate
    _active.value = translation(language)
  File "C:\Python27\lib\site-packages\django\utils\translation\tran
ine 205, in translation
    _translations[language] = DjangoTranslation(language)
  File "C:\Python27\lib\site-packages\django\utils\translation\tran
ine 114, in __init__
    self._init_translation_catalog()
  File "C:\Python27\lib\site-packages\django\utils\translation\tran
ine 151, in _init_translation_catalog
    translation = self._new_gnu_trans(localedir, use_null_fallback)
  File "C:\Python27\lib\site-packages\django\utils\translation\tran
ine 135, in _new_gnu_trans
    fallback=use_null_fallback)
  File "C:\Python27\lib\gettext.py", line 469, in translation
    raise IOError(ENOENT, 'No translation file found for domain', d
IOError: [Errno 2] No translation file found for domain: u'django'

任何人都可以帮我解决并解释为什么会这样吗? 提前谢谢。

0 个答案:

没有答案