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

tornado rest 开发页面部署问题

  •  
  •   dododada · 2015-08-07 09:47:31 +08:00 · 2106 次点击
    这是一个创建于 3187 天前的主题,其中的信息可能已经有所发展或是发生改变。

    做了个小工程,tornado的,以前的页面用的是tornado的模板,静态文件什么的在app.py里面指定好,就OK了。
    现在改为rest风格了,后台还是tornado,前端纯js操作,不过静态文件的路径什么的跟以前不同,类似
    <img src=\"images/expression_12.png\" width=\"20\" height=\"20\" />');\r\n str = str.replace(/\[兴奋\]/g,'<img src=\"images/expression_13.png\" width=\"20\" height=\"20\" />')
    这种风格的,template_path、static_url之类的用不上了,而且前端html,js,css都是在一个包里面

    请教下怎么部署这种风格的rest工程,主要是前端怎么部署
    有没有大侠可以指教下,多谢多谢

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3203 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 12:34 · PVG 20:34 · LAX 05:34 · JFK 08:34
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.