{{extend 'layout.html'}} {{import os}}
Slashdot Digg Facebook del.icio.us Newsvine StumbleUpon Reddit Yahoo Fark Technorati Furl Ma.gnolia

web2pyTM Enterprise Web Framework

Formerly known as "Gluon" and always backward compatible!
Current {{=open('VERSION','r').read().strip()}}. Please upgrade.

web2py is an open source full-stack Enterprise Framework for agile development of secure database-driven web-based applications, written and programmable in Python. Created by Massimo Di Pierro. © 2007-2008.


Learning opportunitites




Why web2py?


A taste of web2py


Consider the following complete application which consists a model (which describes the data representation): db.py

{{=CODE(""" db=SQLDB('sqlite://images.db') db.define_table('image',SQLField('file','upload')) """.strip(),language='web2py',link='/examples/global/vars/')}}
a controller (which describes the application logic and workflow): images_examples.py

{{=CODE(""" def index(): form=SQLFORM(db.image) if form.accepts(request.vars,session): response.flash='image uploaded' return dict(form=form) """.strip(),language='web2py',link='/examples/global/vars/')}}
and a view (which describes the data presenation): images_examples/index.html:

{{=CODE(open('applications/examples/views/images_examples/index.html','r').read(),language='html')}}
What does it do?

Our visitors

Locations of visitors to this page