Freedom, economy and information technology.
Random header image... Refresh for more!

Web2Py Absolute trouble Shooter

Do you want develop web applications in a fast, prototype based way using Python?

Follow us and learn how to use web2py….

Step 1: Python 2.6 proper setup

On Linux be sure to install sqliite dev library; the following command will help on RedHat:

sudo apt-get install sqlite-devel

for the yum variant see here http://stackoverflow.com/questions/233320/cannot-import-sqlite-with-python-2-6

Install python 2.6, this will avoid the need of additional libraries.

You will also need openssl, so if you haven’t  it issue commands like

sudo apt-get install openssl

and be sure to get also the python wrapper pyOpenSSL hosted here

We happly compiled pyOpenSSL from sources

For more tips and tricks look also at this recipe about Apache Setup, if you need it.

[Read more →]

March 4, 2010   No Comments

Python functional programming

This entry is part 6 of 7 in the series Programming Languages

This article is a work in progress: it will be expanded by your comments…

Python is a very curios programming languages: it give you classes but also a strong function-oriented environment to play with. So, if you like functional programming (read: you like  Lisp and/or Erlang)  you should give python a closer look.

[Read more →]

February 23, 2010   No Comments

Django is going 1.2

Django Project, a powerful and clean Python Web Framework, is going to relase 1.2 as  the next milestone at the beginning of March.
For the meanwhile, you can grab the Beta2:

As part of the Django 1.2 release process, tonight we’ve released Django 1.2 beta 1, a preview/testing package that gives a little taste of some of the new features coming in Django 1.2. As with all alpha and beta packages, this is not for production use, but if you’d like to try out some of the new goodies coming in 1.2, or if you’d like to pitch in and help us fix bugs before the final 1.2 release (due in April), feel free to grab a copy and give it a spin.

Looking at the release notes we get

  • Object-level permissions
  • Permissions for anonymous users

Development sprints for Django 1.2 will also be taking place at PyCon US 2010, on the dedicated sprint days (February 22 through 25).

If you can, it will worth to look at.

February 11, 2010   No Comments