Tornado Web Server

February 27, 2010

Tornado is an open source version of scalable, non-blocking web server and web framework. It was developed for use by FriendFeed and later in 2009 the company also was acquired by Facebook. Tornado is noted for its high performance and is written using a web framework that looks a bit like web.py or Google’s webapp. [...]

Read the full article →

Django-paypal and M2Crypto on webfaction

September 29, 2009

If you are using django-paypal on Webfaction and want to encrypt the post form, you are going to run into an issue building M2Crypto since their servers OpenSSL has been built without EC support.  You can get around this by using the following commands to install M2Crypto: cat >> ~/.pydistutils.cfg << EOF [build_ext] include_dirs=/usr/include/openssl EOF [...]

Read the full article →

Why you need help text in your objects

August 23, 2009

Adding docstrings can make your life much easier in the long run.  They can also help anyone that might be looking at your code after you. Here is a simple example of a model with a doc string: class total_clicks(models.Model): “””Here are the total clicks that have come from this user. “”” user = models.ForeignKey(User, [...]

Read the full article →

What is in python object?

August 23, 2009

When I made the move from being a PHP dummy to a Django dummy, one of the biggest issues I ran into was trying to debug my code. In PHP you can echo or loop echo pretty much anything and see what data you have to deal with. When I started with django I could not for the life of me figure out what each object included and how to get at it. Then I found python’s dir().

Read the full article →
About |  Contact |  Sitemap |  Terms of Service |  Privacy