开发者

Slow local windows django dev environment

开发者 https://www.devze.com 2022-12-19 06:53 出处:网络
My local djan开发者_高级运维go dev environment (apache 2.2, Python 2.6, Django 1.2a, mod_wsgi, sqlite, win7 64bit) is really slow. It usually takes 15sec-30sec to load a page.

My local djan开发者_高级运维go dev environment (apache 2.2, Python 2.6, Django 1.2a, mod_wsgi, sqlite, win7 64bit) is really slow. It usually takes 15sec-30sec to load a page.

Any ideas what might be slowing it down? Same application on the production server runs just fine.

Task manager shows: Task Manager http://img268.imageshack.us/img268/4396/20100201210438.gif


What host name are you using to access your site? Are you using 'localhost'? If so, try using '127.0.0.1' instead and see if it runs quicker.

Seen a few times where people would experience delays because of fact that IPV6 is enabled by default on Windows 7. This was causing issues when accessing via localhost. The solution was to edit:

C:\Windows\system32\drivers\etc\hosts

and comment out the line:

::1 localhost

Ie., make it so it reads:

# ::1 localhost

If there is a line:

# 127.0.0.1 localhost

uncomment it so it reads:

127.0.0.1 localhost

Anyway, think that was what the changes needed to be.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号