Questions tagged [web2py]

web2py is a open-source full-stack web framework written in Python.

web2py is a free, open-source web framework for agile development of secure database-driven web applications; it is written in Python.

web2py is a full-stack framework. It includes an ORM (called the Data Abstraction Layer), its own template engine and typical form widget helpers and controls.

Created by a team of professionals and academics, one of its key principles is no backward incompatible changes. Development is led by Massimo Di Pierro, Associate Professor in Computer Science at DePaul University in Chicago.

Additional resources:

  1. Project Website
  2. Documentation
  3. Source Code
  4. Sample Websites
  5. Wikipedia Page
  6. Google Group

Simple Example (from What is web2py?):

Model Definition:

db=DAL('sqlite://storage.db')
db.define_table('image', 
    Field('name'),
    Field('file','upload'))

Controller:

def index():
    form = SQLFORM(db.image)
    if form.process().accepted:
        response.flash = 'image uploaded'
    return dict(form = form,counter=None,_class='boxCode')

View:

{{extend 'layout.html'}}
<h1>Image upload form</h1>
{{form}}
2141 questions
67
votes
25 answers

Anyone out there using web2py?

Is anyone out there* using web2py? Specifically: In production? With what database? With Google Application Engine? by "out there" I mean at stackoverflow.
Christopher Mahan
  • 7,621
  • 9
  • 53
  • 66
27
votes
7 answers

A good development environment setup for Web2Py

Have been trying out Web2Py for a couple of days now and I decided it to be a keeper. But there is one thing that concerns me a lot and that might be a showstopper in the end. I need a nice development environment & setup I can trust and be…
joeriks
  • 3,382
  • 8
  • 32
  • 42
21
votes
4 answers

"object of type 'NoneType' has no len()" error

I'm seeing weird behavior on this code: images = dict(cover=[],second_row=[],additional_rows=[]) for pic in pictures: if len(images['cover']) == 0: images['cover'] = pic.path_thumb_l elif len(images['second_row']) < 3: …
dmmd
  • 2,938
  • 4
  • 33
  • 41
20
votes
2 answers

How can I use modules in web2py?

I have some functions in func.py that I would like to access from my web2py controller called default.py. I tried to import and use func.py in default.py with "import func" and "calculatesomething = func.calculatesomething", but it doesn't work. The…
user569474
  • 451
  • 3
  • 7
  • 14
20
votes
7 answers

Django, Turbo Gears, Web2Py, which is better for what?

I got a project in mind that makes it worth to finally take the plunge into programming. After reading a lot of stuff, here and elsewhere, I'm set on making Python the one I learn for now, over C# or java. What convinced me the most was actually…
Tsais
  • 301
  • 1
  • 3
  • 7
19
votes
9 answers

How to debug Web2py applications?

Is it possible? By debug I mean setting breakpoints, inspect values and advance step by step.
Santiago Corredoira
  • 47,267
  • 10
  • 52
  • 56
15
votes
2 answers

How to deploy web2py using nginx?

web2py is an awesome python framework which has great documentation including several deployment recipes. Yet what I miss there is the recipe for deploying using nginx (preferably with uwsgi). There are some incomplete notes around the web (like…
qliq
  • 11,695
  • 15
  • 54
  • 66
15
votes
10 answers

web2py in the future?

Given the size of web2py and the lack of resources and corporate support, do you think it would be advisable to learn web2py as the only web development framework I know. I'm considersing learning Ruby on Rails or web2py for a website I need to…
potlee
  • 405
  • 1
  • 5
  • 13
13
votes
3 answers

What are the mature CMSs and Blogs built on web2py?

In search of technologies for developing web applications and portals, I recently dabbled into Ruby and Python (from a non-sysadmin point of view .. ie, towards web application development) and immediately fell in love with python. I have since…
Chux Uzoeto
  • 131
  • 1
  • 3
13
votes
1 answer

What are the benefits of building HTML markup with HTML helpers in web2py?

I would like to learn the benefits of using HTML helpers in web2py instead of plain HTML markup elements. As an example, I read the following HTML markup builder code in a web2py application…
Mert Nuhoglu
  • 9,695
  • 16
  • 79
  • 117
13
votes
3 answers

@Rails users: have you tried web2py? Pros? Cons?

web2py to is a Python framework but shares the "convention over configuration" design that Ruby on Rails has. On the plus side it packages a lot more functionality with its s standard distribution and we claim it is faster and easier to use. Has…
massimo
  • 2,775
  • 1
  • 18
  • 17
13
votes
5 answers

Django for web2py developers

Now that I've gotten relatively familiar with web2py, I'd like to give Django a go. What are the main differences? What would be the most efficient way to get started taking into account web2py knowledge? (It must help to have some python…
carrier
  • 32,209
  • 23
  • 76
  • 99
12
votes
5 answers

How do I deploy web2py on PythonAnywhere?

How do i get a basic web2py server up and running on PythonAnywhere?
fuzzyman
  • 8,271
  • 2
  • 30
  • 32
12
votes
0 answers

Credit card payments and notifications on the Google App Engine

I ported gchecky to the google app engine. you can try it here It implements both level 1 (cart submission) and level 2 (notifications from google checkout). Is there any other payment option that works on the google app engine (paypal for example)…
massimo
  • 2,775
  • 1
  • 18
  • 17
12
votes
3 answers

web2py - allow external access - how?

I want to start a web2py server so that it can be accessed externally to the hosting server. I've read this http://web2py.com/books/default/chapter/29/03 By default, web2py runs its web server on 127.0.0.1:8000 (port 8000 on localhost), but you…
shearichard
  • 1,095
  • 1
  • 17
  • 35
1
2 3
99 100