在运行manage.py时出错

时间:2014-08-31 05:48:00

标签: python django

C:\Python27\mysastha>python manage.py runserver
Traceback (most recent call last):
  File "manage.py", line 15, in <module>
    from django.core.management import execute_from_command_line
ImportError: cannot import name execute_from_command_line

manage.py

if __name__ == "__main__":
    from django.core.management import execute_from_command_line

    execute_from_command_line(sys.argv)

0 个答案:

没有答案