Django [how to] : Meet Django Part 1 – Introduction

Django. Wait, What?

Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.

Developed by a fast-moving online-news operation, Django was designed to handle two challenges: the intensive deadlines of a newsroom and the stringent requirements of the experienced Web developers who wrote it. It lets you build high-performing, elegant Web applications quickly.

Yes i love django in the first sight. Even i’m new to python, django (and python of course)  it’s so easy, just like the “algorithm”. My background in web dev, is using PHP more than 3years, but only in a few month, i can fully develop some app with python (and django). If i have to create similar app like that in PHP, maybe it took more time, maybe twice, than using Python (and django of course). Continue Reading


Python [how to] : using virtualenv in your python or django project

Virtualenv.. Wait. What?

virtualenv is a tool to create isolated Python environments. The basic problem being addressed is one of dependencies and versions, and indirectly permissions. Imagine you have an application that needs version 1 of LibFoo, but another application requires version 2. How can you use both these applications? If you install everything into /usr/lib/python2.7/site-packages (or whatever your platform’s standard location is), it’s easy to end up in a situation where you unintentionally upgrade an application that shouldn’t be upgraded.

That is what they said, yes it is. Some python library, is sometime compatible, and sometime not. So this is the answer, IMO , virtualenv it’s just like a virtual machine, but only for python, in 1 machine you can have multiple virtual machine (cmiiw). Continue Reading