V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
layman3612
V2EX  ›  Python

django + uwsgi 遇到的问题

  •  
  •   layman3612 · 2017-12-15 15:35:21 +08:00 · 1739 次点击
    这是一个创建于 2316 天前的主题,其中的信息可能已经有所发展或是发生改变。

    python 新手 django 每次启动需要加载数据到内存中,大概几十秒。 用 uwsgi 启动 django 的时候这部分加载操作没有在启动的时候执行 而是在每个 uwsgi 的 worker 收到请求的时候初始化 有没有办法能让 uwsgi 起来后就加载这些数据

    2 条回复    2017-12-15 22:42:48 +08:00
    dorothyREN
        1
    dorothyREN  
       2017-12-15 18:13:59 +08:00
    手动访问一下 就行了。。
    ericls
        2
    ericls  
       2017-12-15 22:42:48 +08:00 via iPhone
    启动加载什么数据?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3513 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 04:43 · PVG 12:43 · LAX 21:43 · JFK 00:43
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.