halicea web框架(halweb)是一个新兴的mvcweb框架,用于真正容易理解和快速的开发。

HalWeb的Python项目详细描述


这是halweb的初始版本,将有与当前版本不兼容的更改。所以请耐心等待。

如果您急于尝试,则需要手动设置config.py中的appenginepath以进行halweb安装。

当然,您的系统上需要有appengine

安装

这三项工作中的任何一项:

shell>python setup.py install or shell>easy_install halweb or shell>python setup.py install`

一些示例

创建项目

  1. open hal.py in your shell by typing hal:

    cmd>hal
    
  2. Create a project:

    shell>hal
    hal>project /home/myhome/MyProjects/TestProject
    
  3. Run your project:

    shell>cd /home/myhome/MyProjects/TestProject
    shell>python manage.py
    hal>run
    

Woalla you have your project setup and running

在项目中创建模型、视图、控制器、窗体和处理程序

Open the manage.py console in you project and type:

hal>>mvcfh Galery.Photo

The console will give you the opportunity to setup the model:

..............class Galery.Photo(db.Model):
Property0>........

Populate it like this:

..............class Galery.Photo(db.Model):
Property0>........Name str required=True
Property1>........Description txt
Property2>........DateCreated date
Property3>........Content blob
Property4>........MimeType str
Property5>........
Save Galery.Photo?(y/n) y

With this you have defined the Model, It’s controller, forms and also address binding which is added in the handlerMap.py file

You can also add different Models under the ‘Package’ Galery and use them in the code

Later you can

操纵你galery包

With

Exporting it to some directory:

hal>pack package Galery /some/destination/NameOfThePackage

Also unpack it from there to some other Hal project:

hal>unpack package Galery /from/the/package/directory

Or delete it if you were just playing:

hal>del package Galery

Note: Official Online Hal Packages Repository is comming soon

继续探索;)

我将在不久的将来投入更多,解释它的工作原理。:)

http://www.python.org/images/python-logo.gifhttp://code.google.com/appengine/images/appengine_lowres.png

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java从浏览器获取URL   JRMP连接建立期间发生java错误   SpringJava。lang.NoClassDefFoundError:org/springframework/beans/factory/BeanNameAware   垃圾收集如何在Java中(有效地)删除最终数组   当您不拥有模型时,java实现MVP?   java Eclipse无法编译粘贴的代码   java一个单元如何测试非确定性加密函数?   java捕获错误消息并显示在控制台(IDE)中   java如何减少完整GC的数量?   java生成axis2 Web服务客户端jar   java列表<List<Integer>>到2D数组的转换(int[]   java安全。getString(mContext.getContentResolver(),“bluetooth_address”)在Android O中返回null   java如何从TCP数据包中获取HTTP正文   base64中带有内联附件的java提取电子邮件正文   java如何使用SQLite在RecyclerView中动态添加按钮