小编joh*_*c07的帖子

用pcre支持重建uwsgi

当运行uwsgi时,我收到以下消息:

!!! no internal routing support, rebuild with pcre support !!!
Run Code Online (Sandbox Code Playgroud)

我已经使用以下命令安装了pcre(我认为):

Sudo apt-get install libpcre3 libpcre3-dev
Run Code Online (Sandbox Code Playgroud)

我的问题是:为什么即使在我安装了pcre软件包之后我仍然收到此消息,如果我需要重新安装uwsgi并激活pcre我该怎么做?

此外,内部路由是否重要?我认为它确实如此,否则uwsgi的制造商就不会提出这个消息.我运行Ubuntu 12.04 LTS.

谢谢您的帮助!

pcre uwsgi

66
推荐指数
5
解决办法
4万
查看次数

Django ImportError:无法导入设置'mysite.settings.local'(是否在sys.path上?):没有名为settings.local的模块

我正在django中设置一个网站,其中有两个django建议的多个设置文件,其中settings.py被包含多个设置文件(local.py等)的设置目录替换.当我将settings.py保留在默认位置时,我的开发服务器将正常运行,但当我将其移动到新设置目录中时,我创建并运行开发服务器:

python manage.py runserver --settings=mysite.settings.local
Run Code Online (Sandbox Code Playgroud)

我收到错误:

ImportError:无法导入设置'mysite.settings.local'(是否在sys.path上?):没有名为settings.local的模块

我已将目录添加到python路径,当我进入python并输入时,它会显示出来:

import sys
sys.path
Run Code Online (Sandbox Code Playgroud)

我的想法已经不多了.任何帮助都会很棒.

python django settings importerror

1
推荐指数
1
解决办法
1万
查看次数

标签 统计

django ×1

importerror ×1

pcre ×1

python ×1

settings ×1

uwsgi ×1