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
28hua
V2EX  ›  Python

Django 的通用视图是为了解决什么问题, 什么时候应该使用通用视图

  •  
  •   28hua · 2015-04-28 21:02:33 +08:00 · 2590 次点击
    这是一个创建于 3295 天前的主题,其中的信息可能已经有所发展或是发生改变。
    3 条回复    2015-04-29 08:47:03 +08:00
    twor2
        1
    twor2  
       2015-04-28 21:38:46 +08:00   ❤️ 1
    sallowdish
        2
    sallowdish  
       2015-04-29 01:24:45 +08:00
    CRUD
    ericls
        3
    ericls  
       2015-04-29 08:47:03 +08:00   ❤️ 1
    比如在显示文章内容 和列表的时候 相当相当方便,

    但是和 FBV 的思路有一个很大的转换,这是我当时迟迟不想用的一个主要原因

    个人推荐 比如在显示内容,列表的时候可以尝试一下 CBV。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3574 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 04:30 · PVG 12:30 · LAX 21:30 · JFK 00:30
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.