V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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
oyjc
V2EX  ›  Python

想用python3 + sqlite + cgi 方式做简单动态网站,大家有什么想说的

  •  
  •   oyjc · Jul 19, 2013 · 5378 views
    This topic created in 4677 days ago, the information mentioned may be changed or developed.
    简单的用户登录注册、资料增删改查、API(移动端应用)。
    没有复杂的应用。
    每天最多1万IP,最少100 IP。
    环境:vps + nginx
    纯cgi方式,连bottle之类的也不用...

    感觉很原始人...
    9 replies    1970-01-01 08:00:00 +08:00
    clino
        1
    clino  
       Jul 19, 2013   ❤️ 1
    我用uliweb开发的内部网站都是用 sqlite 的,uliweb的orm默认用的是sqlite
    用sqlite有方便的好处

    但并发高的时候可能会有问题,但只要注意操作数据库的时候主要效率,尽量保持时间短我觉得就可以了
    yakczh
        2
    yakczh  
       Jul 19, 2013
    为什么不用gevent写?
    sxsdlxw
        3
    sxsdlxw  
       Jul 19, 2013
    学习一下!:-P
    mengzhuo
        4
    mengzhuo  
       Jul 19, 2013
    每天最多1万IP,最少100 IP。
    可以考虑用MYSQL了
    BOYPT
        5
    BOYPT  
       Jul 19, 2013
    bottle也不用,纯找虐
    windylcx
        6
    windylcx  
       Jul 19, 2013
    flask吧..
    est
        7
    est  
       Jul 19, 2013
    nginx没法原生支持 CGI 吧。LZ当真是环境变量读URL然后写入到stdout?

    我不信。
    oyjc
        8
    oyjc  
    OP
       Jul 19, 2013
    @est WSGI协议
    est
        9
    est  
       Jul 19, 2013
    @oyjc 这个算毛的 CGI 。CGI 是一个请求一个进程,request从stdin读取,http头从环境变量读取,返回数据写入stdout。nginx都不支持CGI 了。只能用 fcgi 模拟。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3803 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 04:41 · PVG 12:41 · LAX 21:41 · JFK 00:41
    ♥ Do have faith in what you're doing.