最上面的 uwsgi.ini 这个配置无法运行,应该改为 http = :9090 或者 http = 127.0.0.1:9090 。
http = :9090
http = 127.0.0.1:9090
uwsgi_pass http://127.0.0.1:3011;应该改成uwsgi_pass 127.0.0.1:3011;因前面定义的是socket接口,改后才可运行
postgres=# \passwod postgres //psql 命令提示符passwod处少了个r,正确写法是password ,即 postgres=# \password postgres
postgres=# \passwod postgres
password
postgres=# \password postgres
最简单的语法错误都会错!!!!!第17行↓错误的代码:#pip install Django == 1.9.2正确的代码:#pip install Django==1.9.2 等号两边没有空格,你加了空格,就会报错:Invalid requirement: '==';第18行↓错误的代码:#pip install psycopg == 2.4.5正确的代码:#pip install psycopg==2.4.5 等号两边没有空格第19行↓错误的代码:#pip install Pillow == 3.0.0正确的代码:#pip install Pillow==3.0.0 等号两边没有空格
#pip install Django == 1.9.2
#pip install Django==1.9.2
Invalid requirement: '=='
#pip install psycopg == 2.4.5
#pip install psycopg==2.4.5
#pip install Pillow == 3.0.0
#pip install Pillow==3.0.0
以上错误在与本书环境一致情况下发现的。本人操作环境:Ubuntu16.04Python 2.7.11
Ubuntu16.04
Python 2.7.11
manage.py runserver 0.0.0.0:8080 无法运行,应当改为 python manage.py runserver 0.0.0.0:8080。
manage.py runserver 0.0.0.0:8080
python manage.py runserver 0.0.0.0:8080
最上面的 uwsgi.ini 这个配置无法运行,应该改为
http = :9090
或者http = 127.0.0.1:9090
。uwsgi_pass http://127.0.0.1:3011;应该改成uwsgi_pass 127.0.0.1:3011;因前面定义的是socket接口,改后才可运行
postgres=# \passwod postgres
//psql 命令提示符passwod处少了个r,正确写法是
password
,即postgres=# \password postgres
最简单的语法错误都会错!!!!!
第17行↓
错误的代码:
#pip install Django == 1.9.2
正确的代码:
#pip install Django==1.9.2
等号两边没有空格,你加了空格,就会报错:Invalid requirement: '=='
;第18行↓
错误的代码:
#pip install psycopg == 2.4.5
正确的代码:
#pip install psycopg==2.4.5
等号两边没有空格第19行↓
错误的代码:
#pip install Pillow == 3.0.0
正确的代码:
#pip install Pillow==3.0.0
等号两边没有空格以上错误在与本书环境一致情况下发现的。
本人操作环境:
Ubuntu16.04
Python 2.7.11
manage.py runserver 0.0.0.0:8080
无法运行,应当改为python manage.py runserver 0.0.0.0:8080
。