我正在处理一个Django项目,在运行任何管理命令时,例如:
项目基本设置文件为:https://gist.github.com/anonymous/5c0fede63b2724d7880b 开发环境设置文件为:https://gist.github.com/anonymous/f60b90dcf573b0a7b920 我已经将敏感设置替换为
有什么想法吗?
额外的信息是,当我注释掉
回溯信息: https://gist.github.com/anonymous/bc3364ae5ba511566871。
python manage.py validate --settings ord.settings.development
,python manage.py syncdb --settings ord.settings.development
,都会出现以下错误。该项目使用Django 1.5版本。错误信息如下:AttributeError: 'Nonetype' object has no attribute '_info'
。没有其他输出。项目基本设置文件为:https://gist.github.com/anonymous/5c0fede63b2724d7880b 开发环境设置文件为:https://gist.github.com/anonymous/f60b90dcf573b0a7b920 我已经将敏感设置替换为
x
。有什么想法吗?
额外的信息是,当我注释掉
LANGUAGE_CODE
设置时,一些命令如validate
,runserver
,shell
可以正常运行,但是syncdb
和migrate
会失败并显示以下错误:DatabaseError: current transaction is aborted, commands ignored until end of transaction block
。回溯信息: https://gist.github.com/anonymous/bc3364ae5ba511566871。
'Nonetype'对象没有属性'_info'
。 - lenny--traceback
选项来运行它。 - Two-Bit Alchemist