Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I cringed when I saw him installing Django with yum. That's the surest way to end up with an ancient version.

You let the package manager manage whatever you are not very interested in (something you don't care with recent version you are running). I'd never let it manage something I can manage better.



Absolutely. It's ok if you're installing Django to run some 3rd party software but if you're actually building something you need to support it's important to have more control over your environment/libraries than the system-level package manager provides. The author gets it right on the Ruby side but their lack of experience on the python side here is showing. Pip and virtualenv are definitely the way to go today. For tomorrow you should keep your eye on the packaging PEP and the Hitchhiker's guide to packaging:

http://guide.python-distribute.org/introduction.html#current...

http://tarekziade.wordpress.com/2010/02/10/pep-345-and-386-a...

It's confusing but improving quickly. I know it took me quite a while to figure out what the right way to do things in python was.

This is also where rails' conventions help. As good as people say the documentation for Django is, many searches pull up blog posts from 2006 which were right for their time but now are simply outdated. That being said, I think there has been a tremendous boost in Django activity in the past year or so. I feel like they are getting in front of the curve again.


If you're starting with Django, use pip + virtualenv, it seems to be pretty standard within the community


Which are more or less analogous to what he used for Rails.


I agree.

I recently started getting hot and heavy with Linux after moving my stuff to EC2. I thought package managers were the bee's knees until I realised that my production server and my development box (at home) we're running drastically different versions of the same program/library. This of course caused a whole bunch of incompatibility problems and headaches when it came to building other stuff.

If you care about versions and stability, it's just safer and more reliable to compile from source that you know that works. Package managers can sometimes be a crap shoot.


Yes, my thoughts as well at that point. Last time I checked, Ubuntu was offering Django 0.96 - installing through the package manager is bad advice when it comes to installing Django.

Installing from tar.gz isn't at all complex or difficult, either. The article would have been much more helpful if the author knew more about Python and Django.


JFTR Django 0.96 was included in Ubuntu Hardy (8.04) which was released 2008.

Source: http://packages.ubuntu.com/search?keywords=python-django


Typically, LTS releases are used on a server, and 8.04 was the LTS release until last year's 10.04. When I went to install Django last year on a server that was still 8.04, the current version was 0.96. Definitely easier to just install from a tar.gz straight from the developers.


I wonder if he actually got version 1.3!


Very unlikely, I would think.


By 2016 or so...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: