推荐学习书目
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
Ritter
V2EX  ›  Python

请问各位大牛 用 django 模板系统怎样可以做出这样的评论系统

  •  
  •   Ritter · Jan 2, 2019 · 2047 views
    This topic created in 2775 days ago, the information mentioned may be changed or developed.

    评论 主要是层级关系 感觉用模板语言写不出来 还是我水平不够 望指教 谢谢

    8 replies    2019-01-03 22:06:50 +08:00
    ntuwang
        1
    ntuwang  
       Jan 2, 2019
    写 js 吧
    Ritter
        2
    Ritter  
    OP
       Jan 3, 2019
    @ntuwang 想知道层次关系是怎样的
    huisezhiyin
        3
    huisezhiyin  
       Jan 3, 2019
    不建议用 django 的模版系统写复杂的前端 第一前后端分离是趋势 第二是这个模版系统也很鸡肋 干脆就做成前后端分离
    xpresslink
        4
    xpresslink  
       Jan 3, 2019
    可以,关键是体验不好,每次都要在后端渲染网页返回给前端,页面刷新才能看到。

    建议你还是学个前端框架比较容易的 vue 之类的。哪怕是最基础的 bootstrap 也可以实现你要的这个样式,最起码把 jquery 和 ajax 要搞明白了,不然你根本做不了 web 开发。
    Ritter
        5
    Ritter  
    OP
       Jan 3, 2019
    @huisezhiyin T T 准备学 vue 了
    Ritter
        6
    Ritter  
    OP
       Jan 3, 2019
    @xpresslink bootstrap jQuery ajax 都学了 只是没有思路 不知道怎么下手
    xpresslink
        7
    xpresslink  
       Jan 3, 2019
    @Ritter 推荐你看一本书《 Django By Example 》
    ntuwang
        8
    ntuwang  
       Jan 3, 2019
    @Ritter Django 开发的基本不是大项目,会点 bootstrap + jquery 基本能从前干到后
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2647 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 15:26 · PVG 23:26 · LAX 08:26 · JFK 11:26
    ♥ Do have faith in what you're doing.