这是一个创建于 4664 天前的主题,其中的信息可能已经有所发展或是发生改变。
什么都没有,全新开启一个项目:
django-admin.py startproject test
cd test
python manage.py runserver
之后在浏览器里要开30秒以上才能打开...
Google到的解答基本是把/etc/hosts中 "::1 localhost" 注释掉,但对我无解。
有问题的机器是Mac Pro,在mbp上反而跑的飞快,一点问题没有。
同样我在这台机器开虚拟机的Ubuntu搭环境,也是跑的飞快,实在搞不懂。
2 条回复 • 1970-01-01 08:00:00 +08:00
|
|
1
est 2011-12-22 16:16:05 +08:00
strace之
|
|
|
2
spark 2012-07-16 09:42:48 +08:00
在用Flask时也有同样的问题,终于在今天找到解决方案了。
原因是我在Mac Pro没有设置DNS,而MBP是有的,然后我把前者设置了一个联通的DNS,问题迎刃而解。
|