IndexAboutWeblogRecipesProjectsLinksSearchRSS

Categories

ThadeusB python, ai, robots

Web2py Utilities

I have decided to share some of the libraries that I have found useful when creating web2py apps. The contains lots of goodies, and some nice shortcuts. * Common shortcuts * Widgets * py2jquery module * Heirarchical category module. * Database s

Compile web2py apps externally

Web2py has a nice built-in feature supported execution of byte-code compiled applications. When you compile your application, web2py actually will byte-code compile all models, controllers and views. Web2py is the only framework to date that will compile

Using fixtures in web2py

So you are ready to deploy your newly finished web2py app, but you don't like the idea of having to manually insert all of this fixture data again! Create a new model, and name it ``x_fixtures.py``. This way it will execute after all of your models.

Let the web server stream your files, not response.download!

If your web server supports the X-Sendfile header, you are able to stream your uploaded files from the web server, instead of through web2py. Here is a snippet from [Cherokee Website][1] explaining the X-Sendfile header. > X-Sendfile is a special, non