请求页面并在views.py中的函数中执行第一行有明显的延迟。我从日志文件中获取的原因可能是每次调用views.py中的函数时收到的两条警告消息。
两个疑问: 1)视图函数中没有import语句。为什么每次都会收到与导入相关的警告 2)如何修复这些错误并使我的服务器快速运行。
[py.warnings]- WARNING- 2014-02-22 13:46:32,989 __init__.py: 11 - /home/ubuntu/crsq-virtualenv/local/lib/python2.7/site-packages/numpy/oldnumeric/__init__.py:11: ModuleDeprecationWarning: The oldnumeric module will be dropped in Numpy 1.9
warnings.warn(_msg,ModuleDeprecationWarning)
[py.warnings]- WARNING- 2014-02-22 13:46:34,002 pkg_resources.py: 1054 - /home/ubuntu/crsq-virtualenv/local/lib/python2.7/site-packages/pkg_resources.py:1054: UserWarning: /home/ubuntu/.python-eggs is writable by group/others and vulnerable to attack when used with get_resource_filename. Consider a more secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable).