Python论坛  - 讨论区

标题:[python-chinese] [Django]manage.py runserver出错,提示找不到数据库模块

2006年02月19日 星期日 11:19

Nickcheng nick.maillist at gmail.com
Sun Feb 19 11:19:14 HKT 2006

看最后的提示是找不到数据库模块
我的django是svn trunk的, 看木头兄的教程说不用去设置数据库, 但是出现这样的错误, 换了几种数据库类型也是一样的问题.
另外怀疑是路径没有打通,还在尝试中...

Validating models...
Unhandled exception in thread started by 
Traceback (most recent call last):
  File "d:\tools\python\lib\site-packages\django-0.91-py2.4.egg\django\core\mana
gement.py", line 806, in inner_run
    validate()
  File "d:\tools\python\lib\site-packages\django-0.91-py2.4.egg\django\core\mana
gement.py", line 790, in validate
    num_errors = get_validation_errors(outfile)
  File "d:\tools\python\lib\site-packages\django-0.91-py2.4.egg\django\core\mana
gement.py", line 681, in get_validation_errors
    import django.models
  File "d:\tools\python\lib\site-packages\django-0.91-py2.4.egg\django\models\__
init__.py", line 1, in ?
    from django.core import meta
  File "d:\tools\python\lib\site-packages\django-0.91-py2.4.egg\django\core\meta
\__init__.py", line 3, in ?
    from django.core import db
  File "d:\tools\python\lib\site-packages\django-0.91-py2.4.egg\django\core\db\_
_init__.py", line 23, in ?
    raise ImproperlyConfigured, "Could not load database backend: %s. Is your DA
TABASE_ENGINE setting (currently, %r) spelled correctly? Available options are:
%s" % \
django.core.exceptions.ImproperlyConfigured: Could not load database backend: No
 module named MySQLdb. Is your DATABASE_ENGINE setting (currently, 'mysql') spel
led correctly? Available options are: 'ado_mssql', 'mysql', 'postgresql', 'sqlit
e3'

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号