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
pc10201
V2EX  ›  Python

将 django 1.8 的模板切换到 jinja2,好不适应~

  •  
  •   pc10201 · 2015-05-06 21:30:34 +08:00 · 2708 次点击
    这是一个创建于 3301 天前的主题,其中的信息可能已经有所发展或是发生改变。
    都说jinja2性能好,django 1.8终于自带了
    原来的模板是DjangoTemplates
    将django 1.8 的模板切换到jinja2,发现不是无痛的啊,好多地方都得重写~
    3 条回复    2015-05-06 23:19:50 +08:00
    jun4rui
        1
    jun4rui  
       2015-05-06 21:35:55 +08:00
    有转换器之类的吗?
    laike9m
        2
    laike9m  
       2015-05-06 23:09:46 +08:00
    那当然了。。。
    maemual
        3
    maemual  
       2015-05-06 23:19:50 +08:00
    还没尝试?哪些地方需要重写?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   871 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 22:08 · PVG 06:08 · LAX 15:08 · JFK 18:08
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.