自动化运维开发实战课程, 底2-6章节, 让工程在ubuntu上run起来,出问题了

来源:2-6 让工程在ubuntu上run起来

慕婉清1752713

2018-01-28

在web上输入网址http://192.168.94.131:8000/

出现下面的错误,难道不支持虚拟机?


ProgrammingError at /

(1146, "Table 'imoocc.physicalserverinfo' doesn't exist")

Request Method: GET

Request URL: http://192.168.94.131:8000/

Django Version: 1.11.9

Exception Type: ProgrammingError

Exception Value:

(1146, "Table 'imoocc.physicalserverinfo' doesn't exist")

Exception Location: /opt/python2.7/lib/python2.7/site-packages/django/db/models/sql/compiler.py in execute_sql, line 899

Python Executable: /opt/python2.7/bin/python

Python Version: 2.7.10

Python Path:

['/opt/code/imoocc/extra_apps',

 '/opt/code/imoocc/apps',

 '/opt/code/imoocc',

 '/opt/python2.7/lib/python27.zip',

 '/opt/python2.7/lib/python2.7',

 '/opt/python2.7/lib/python2.7/plat-linux2',

 '/opt/python2.7/lib/python2.7/lib-tk',

 '/opt/python2.7/lib/python2.7/lib-old',

 '/opt/python2.7/lib/python2.7/lib-dynload',

 '/opt/python2.7/lib/python2.7/site-packages',

 '/opt/python2.7/lib/python2.7/site-packages/setuptools-28.8.0-py2.7.egg',

 '/opt/python2.7/lib/python2.7/site-packages/pip-9.0.1-py2.7.egg']

Server time: 星期一, 29 一月 2018 00:06:23 +0800


写回答

1回答

Jeson

2018-01-28

Table 'imoocc.physicalserverinfo' doesn't exist

出现这种错误,是不是因为这个数据库没有进行迁移,表及对应的表结构没有生成?

可以登录到mysql中

user imoocc;

show tables;

看下physicalserverinfo表是否都有生成

0
5
慕婉清1752713
回复
Jeson
多谢,执行完你刚说的命令后可以打开网页了:)
2018-01-29
共5条回复

Python+Django+Ansible Playbook自动化运维项目实战

【课程升级3.6版本】大牛全面践行DevOps,运维与开发间高效协作

861 学习 · 326 问题

查看课程