Django无法使用"python manage.py syncdb"命令创建默认表

Ree*_*gam 1 python django

我是Django的新手.我按照教程中给出的说明进行操作.当我运行时python manage.py syncdb,我收到以下错误:

D:\MyDev\DjnagoProject\mysite>python manage.py syncdb
Traceback (most recent call last):
  File "manage.py", line 9, in <module>
    execute_from_command_line(sys.argv)
  File "C:\Python27\lib\site-packages\django\core\management\__init__.py", line 420, in execute_from_command_
line
    utility.execute()
  File "C:\Python27\lib\site-packages\django\core\management\__init__.py", line 359, 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 57, in handle_noargs
    cursor = connection.cursor()
  File "C:\Python27\lib\site-packages\django\db\backends\dummy\base.py", line 15, in complain
    raise ImproperlyConfigured("You haven't set the database ENGINE setting yet.")
django.core.exceptions.ImproperlyConfigured: You haven't set the database ENGINE setting yet.
Run Code Online (Sandbox Code Playgroud)

添加信息:Python版本:2.7.2,django版本:(1,4,0​​,'alpha',1)操作系统:Windows XP

请让我知道我在哪里弄错了.

var*_*tec 5

阅读您的错误消息:

配置不正确:您尚未设置数据库引擎设置.

检查DATABASES你的settings.py.你至少需要ENGINE数据库NAME