Enabling internal routing in uWSGI

微笑、不失礼 提交于 2019-12-01 17:00:33

I had to install uWSGI with pcre support. It solved problem with routing.

To do it I had to install pcre lib(for Ubuntu the package called libpcre3) and reinstall uWSGI then. Since PCRE is already in your system uWSGI will be automatically compiled with pcre support.

There are also points from @tobias.mcnulty comment that also might be useful:

  • libpcre3-dev package on Ubuntu also needs to be installed
  • afterwards you may want to run pip install -I --no-cache-dir uwsgi to reinstall it, otherwise you might just get the same cached wheel.
  • the error in the logs is !!! no internal routing support, rebuild with pcre support !!!
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!