Home > Programming > Learning Django and Python with “The Django Book”

Learning Django and Python with “The Django Book”

django_bookAdopting the OSQA project has suddenly put learning Django on my list of priorities, so I’m enjoying the holiday weekend and working my way through “The Django Book” by Adrian Holovaty and Jacob Kaplan-Moss. It’s my first significant exposure to Python and its much-loved Django framework, and I have to say that I am pretty impressed. This duo seems to deliver results with very little code and effort – the kind of “smart lazy” I always admire.

The philosophy of Django’s template system, for example, leverages a “keep it simple” approach that encourages better separation of business and presentation logic. Having seen and written too many web templates that actually end up performing business logic, I can appreciate this idea. Similarly, Django’s data model abstraction seems to deliver a good balance between portability and power, and you may never need to write a SQL query to use it.

I’ve been using TextMate on my MacBook Pro to work through the book’s examples so far. I’m pretty sure I’ll end up wanting to use Eclipse or IntelliJ IDEA for OSQA development work. I installed Aptana’s Pydev plugin into Eclipse, but for some reason it fires up python twice and only terminates it once when I invoke their Python debugger, and it’s warning me about errors in code that is apparently correct and works. I also installed the Python Plugin for IntelliJ IDEA, so I’ll give that a try today. It looks pretty solid, and the JetBrains team always does exceptional work.

“The Django Book” is clear, well-organized and moves at a good pace. You’ll want to read the free, online version because the print version is way out of date. I think I’ll put on some Django Reinhardt in the background to set the mood for the next chapter!

  • Share/Bookmark
Tags: , , ,
  1. January 2nd, 2010 at 15:48 | #1

    thats great, now after i finish “Dive Into Python”, i will dive into Django

  2. January 3rd, 2010 at 03:19 | #2

    I have been using netbeans for django app development and have found it quite good.

  3. January 3rd, 2010 at 05:24 | #3

    You may also try NetBeans which has nice Python support – http://netbeans.org/features/python/index.html

  4. January 3rd, 2010 at 08:32 | #4

    I’m glad to be reminded that NetBeans offers Python support. I will try that one, too. Thanks!

  5. January 4th, 2010 at 12:25 | #5

    +1 for Netbeans + Python plugin. Works pretty well with Django.

  6. January 4th, 2010 at 15:38 | #6

    +10 for Netbeans + Python. Get v6.8. It’s awesome.

  1. January 2nd, 2010 at 12:11 | #1
  2. January 3rd, 2010 at 10:07 | #2