Tag Archives: Web

Practical Django Projects

Due to my devo­tion to the Django web frame­work, I finally got my copy of Prac­ti­cal Django Projects, by James Bennet. Not really expect­ing to have that soon, but a beau­ti­ful suprise anyway (to say the truth, I didn’t bought this: this has been sent to me as replace­ment prize for djan­go­dash because I was not eleg­i­ble to get the G33K beers since I live out­side US. Thanks to the gen­eros­ity of Daniel Lindsley).

Read more »

Let meet at djangodash

As prob­a­bly many of you already knows, on May 31 will begin the Django dash com­pe­ti­tion. Djan­go­dash is:

[…] is a chance for Django enthu­si­asts to flex their coding skills a little and put a fine point on “per­fec­tion­ists with dead­lines” by giving you a REAL dead­line. 48 hours from start to stop to pro­duce the best app you can and have a little fun in the process.

I’ll be par­tic­i­pat­ing, so if you haven’t reg­is­tered yet, do it now! And don’t forget to check out the cool prizes :)

When the “Python Vs PHP” war matters

Yesterday I had a meet­ing with a cus­tomer about a new site I should develop for them. Since they’re a book pub­lisher, they wanted an online book store. Apart from the tech­ni­cal details (the site isn’t as simple as you may believe, they need a lot of not-so-easy-to-do stuff), the most impor­tant point we focused on is the fact that they have an inter­nal IT tech­ni­cian that han­dles all their com­puter needs. If you’re asking your­self why this mat­ters, keep reading:

  • me (to be precise, my company) stopped development of PHP sites about one year ago in favor of Python
  • we release the web site’s code to them
  • for this project, we haven’t been asked any kind of future support; this means that when the site is finished, we won’t touch the product anymore (unless they don’t pay us to do the modifies they need)
  • but they don’t want to pay us to these modifies, because they have their internal IT technician
  • their technician knows only PHP (and he never even known the Python’s existence until yesterday)

Read more »

Django and syncdb’s signal processing

One fea­ture of django is worth to note is that it sup­ports sig­nals. In fact, under its skin it imple­ments PyDis­patcher, a python library that allows to emit sig­nals and to dis­patch them.

If at first glance this couldn’t look so useful to you, well, this hasn’t been true for me since it was exactly that kind of stuff I was look­ing for. What I was trying to do was to imple­ment some kind of auto-​installer for an appli­ca­tion that I’m writ­ing, and in order to do so I had to run the set up after that the syncdb com­mand is issued. So the main prob­lem was: how do I know when a user does the syncdb in a non-​intrusive way?

After some googling, I found that in django exists the semi-​hidden fea­ture of sig­nals, so I began explor­ing them. The only thing you can look at on the offi­cial site is a page on their wiki, and addi­tion­ally there are some cool arti­cles over the net. Anyway, if you want to know a fast way to catch the syncdb com­mand just follow up the reading.

Read more »