推荐学习书目
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 · Aug 7, 2015 · 2506 views
    This topic created in 3998 days ago, the information mentioned may be changed or developed.

    做了个小工程,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工程,主要是前端怎么部署
    有没有大侠可以指教下,多谢多谢

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2858 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 09:19 · PVG 17:19 · LAX 02:19 · JFK 05:19
    ♥ Do have faith in what you're doing.