Tho*_*Cox 5 python windows django
使用带有Python 2.7和Django 1.4的Window 7 64Bit.
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Django-1.4\django\bin\cms2>manage.py syncdb
Creating tables ...
Installing custom SQL ...
Installing indexes ...
Traceback (most recent call last):
File "C:\Django-1.4\django\bin\cms2\manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "C:\Python27\lib\site-packages\django\core\management\__init__.py", line
443, in execute_from_command_line
utility.execute()
File "C:\Python27\lib\site-packages\django\core\management\__init__.py", line
382, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "C:\Python27\lib\site-packages\django\core\management\base.py", line 196,
in run_from_argv
self.execute(*args, **options.__dict__)
File "C:\Python27\lib\site-packages\django\core\management\base.py", line 232,
in execute
output = self.handle(*args, **options)
File "C:\Python27\lib\site-packages\django\core\management\base.py", line 371,
in handle
return self.handle_noargs(**options)
File "C:\Python27\lib\site-packages\django\core\management\commands\syncdb.py"
, line 164, in handle_noargs
call_command('loaddata', 'initial_data', verbosity=verbosity, database=db)
File "C:\Python27\lib\site-packages\django\core\management\__init__.py", line
150, in call_command
return klass.execute(*args, **defaults)
File "C:\Python27\lib\site-packages\django\core\management\base.py", line 232,
in execute
output = self.handle(*args, **options)
File "C:\Python27\lib\site-packages\django\core\management\commands\loaddata.p
y", line 239, in handle
(full_path, ''.join(traceback.format_exception(sys.exc_type,
UnboundLocalError: local variable 'full_path' referenced before assignment
Run Code Online (Sandbox Code Playgroud)
错误
UnboundLocalError: local variable 'full_path' referenced before assignment
Run Code Online (Sandbox Code Playgroud)
我自己安装了它,但它给了我错误.这有什么问题?我试图谷歌,但没有出现.
Tim*_*mmm 10
我也有这个问题.它是由(其他人)将此添加到我的settings.py:
SERIALIZATION_MODULES = {
'json': 'wadofstuff.django.serializers.json'
}
Run Code Online (Sandbox Code Playgroud)
我没有安装那个东西.您可以使用以下方法安装它
pip install wadofstuff-django-serializers
Run Code Online (Sandbox Code Playgroud)
我想其他丢失的软件也会发生类似的错误.
| 归档时间: |
|
| 查看次数: |
2050 次 |
| 最近记录: |