【Python】django启动manage.py 出错 {Traceback (most recent call last): File "manage.py", line 15, in <module> execute_from_command_line(sys.argv)}

在pycharm中配置django时出现

  Traceback (most recent call last):

    File "manage.py", line 15, in <module>
      execute_from_command_line(sys.argv)

这个错误

 

  最主要的问题是因为提前配置了  django    在创建时 就按照manage.py配置

执行   python(python有没有在环境变量中  没在的话需要python安装目录进行调用) manage.py startapp xxx

之后在配置数据库  和静态文件

 

posted @ 2018-03-21 20:27  hangye  阅读(102)  评论(0)    收藏  举报