随笔分类 - Pyramid Web Application Framework
摘要:I spent several days on building a system about this. And make it work well with serveral thousand lines of codes.
阅读全文
摘要:现在,我们用torndo做web开发框架,用他内部机制来处理HTTP请求。传说中的非阻塞式服务。整来整去,可谓之一波三折。可是,无论怎么样,算是被我做成功了。在tornado服务上,采用三种数据库模型--》1)torndb2)django model3)SQLAlchemy model 都同时输出相应的JSON,做API服务。(一个比一个强大的ORM model)都同时实现了一样的功能注意:要说明的一点是,在数据库建立模型的时候,是用到的django model建立的数据库模型。所以在使用torndb(SQL 操作语言的ORM) 和 django model的时候,非常简单操作,直接引用...
阅读全文
摘要:SQLAlchemy TrialThis is a great ORM ( Object-Relational Mapper ) which is compatible with xxxx and many others.SQLAlchemy 0.8 Documentationlink: http://docs.sqlalchemy.org/en/rel_0_8/orm/examples.html IMPORTANT TO GO THROUGHObject Relational Tutorialhttp://docs.sqlalchemy.org/en/rel_0_8/ 需要看...
阅读全文
摘要:---恢复内容开始---一般情况下需要sqlite3所以需要sudo apt-get install libsqlite3-dev而后,创建一个alchemy的project还需要Exposing Test Coverage Information就是$ ../bin/easy_install nose coverage然后,让它自动下载安装即可。On UNIX:$ ../bin/nosetests --cover-package=tutorial --cover-erase --with-coverage这样是用来检测应用的成分的,nose , coverage看看包里面的主要成分是什么。(
阅读全文
摘要:---恢复内容开始---一般情况下需要sqlite3所以需要sudo apt-get install libsqlite3-dev而后,创建一个alchemy的project还需要Exposing Test Coverage Information就是$ ../bin/easy_install nose coverage然后,让它自动下载安装即可。On UNIX:$ ../bin/nosetests --cover-package=tutorial --cover-erase --with-coverage这样是用来检测应用的成分的,nose , coverage看看包里面的主要成分是什么。(
阅读全文
摘要:一般情况下需要sqlite3所以需要sudo apt-get install libsqlite3-dev而后,创建一个alchemy的project还需要Exposing Test Coverage Information就是$ ../bin/easy_install nose coverage然后,让它自动下载安装即可。On UNIX:$ ../bin/nosetests --cover-package=tutorial --cover-erase --with-coverage这样是用来检测应用的成分的,nose , coverage看看包里面的主要成分是什么。(那个包括静态文件的文件夹
阅读全文
摘要:I downloaded some templates and make it work with pyramid.CSS, Js, and other things. It's just like easy to use.You see I haven't mapped the images . coz there are too many over there. No need.Sobuild a site later. :) Just get some JS and have fun.
阅读全文
摘要:Nail a marker here:http://docs.pylonsproject.org/projects/pyramid/en/latest/tutorials/wiki2/definingviews.htmlTo Be Continued--------------------------------------------TIME LINE 21:42 2013 04 13--------------------------------------------------------http://pyramid.readthedocs.org/en/1.4-branch/narr
阅读全文
摘要:Here's something I made to help you understand Pyramid well.You may need to read very specific tutorials in details in those 5 steps:1. A Hello World! using Pyramid web frameworkhttp://docs.pylonsproject.org/projects/pyramid/en/latest/My knowledge and experience:Raju's blog is really helpful
阅读全文
摘要:it's too sad that MySQLdb module is not capatiable with the newest pyramid web application framework (python3)if you do really want to use MySQL to store your data.Just use the python 2.7 when you are deploying pyramid app.http://sourceforge.net/projects/mysql-python/
阅读全文
摘要:http://docs.pylonsproject.org/projects/pyramid/en/1.4-branch/narr/install.html是我在csdn的博客:http://blog.csdn.net/spaceship20008/article/details/8767884放在cnblogs做备份按照介绍操作。我用的是mint13, python 3.2.3版本。使用的是virtualenv 开发工具在一个虚拟的python环境下开发web app这样很不错。请按照其步骤来。在python3.2中,有一些东西需要记住:4.6.2. Old String Formattin
阅读全文
摘要:to handle posgreSQL well.i found this article may be helpful.From: http://www.cnblogs.com/tzp_8/archive/2012/11/08/2760746.htmlpostgresql 常用命令(1)用户实用程序:createdb 创建一个新的PostgreSQL的数据库(和SQL语句:CREATE DATABASE 相同)createuser 创建一个新的PostgreSQL的用户(和SQL语句:CREATE USER 相同)dropdb 删除数据库dropuser 删除用户pg_dump 将Postg
阅读全文
摘要:I created an app on openshift. and then i added a postgreSQL cartridge there.using ssh username@ip which redhat provided i logged into the server.using command "export" to check out the postgreURL which looks like postgre://username:password@ip:portthen store those information.To make post
阅读全文
摘要:自己总结的。分享给大家看。做个纪念。继续研究
阅读全文