31 points · by jacquesm · 17y ago · 25 comments
1. A collection of Django applications which cover the common features of a variety of different types of sites, vetted for functionality/reusability/etc.
2. Some bits of glue to pull together the various applications for different types of sites.
So, for example, you want to build a social-networking site. Regardless of the specific focus of your site there's lots of infrastructure you're likely to need/want because it comes with that territory (user signups, "friending" and other relationships, profiles, ratings, etc., etc.). So Pinax offers a set of pre-vetted apps which provide that functionality, and some bits to make it easier to plug them all together.
They have included a number of more CMS-y bits in the development version, however: http://pinaxproject.com/docs/dev/customization.html
(was pinax, CMS functionality on top of python / django)
My personal opinion as someone who works a lot with Django but not (for now, at least) Pinax is that they hit the problem, common in the open-source world, of starting to hit the popularity curve before they were really ready for it. Pinax started getting attention and flattering blog posts and such when there were still several issues to work out with the way Pinax itself was packaged, how applications were vetted for inclusion, etc., etc.
Fortunately, popularity has also brought them plenty of new contributors, which means this stuff either has been worked out (e.g., for things like packaging -- now using pip with custom bootstraps, and requiring every app to be installable through it, which is pretty much the ideal) or is being subjected to a flurry of activity.
I do agree it would be nice if there was a convention for template names and block names from within those templates. Which would reduce the work on the previously mentioned creating of your template files.
Of course there are some like this. A large majority however, are not thought out well enough to provide any real benefit without the user writing some other glue. The best example I can think of is django-favorites.
The best example of a pluggable that works well though, imho, is django-tagging. It's well thought out, and works well.
1) Bad documentation. 2) Bad installer (installer??? Django apps should be installed with cp and tar.) 3) They attempt to bundle everything with their cheeseball installation package yet I still spent 3 hours compiling external dependencies (not just PIL) which was a major pain in the ass. 4) Not compatible with Python 2.4, the default on a huge number of servers and this is not stated anywhere in the docs.
I haven't deployed the code to a production web server with mod python or WSGI but I'm betting it's going to be a major pain in the ass, too.
The Django apps that I've written from scratch, every single one of them, could be tarred and dropped into a working Django 1.0/WSGI environment with zero effort other than setting up the base environment - I know because I've done it many times. In my opinion they should really rethink this concept of an "installer". It's a red herring for productivity and doesn't even do what it says it does because there are external dependencies to compile and a bunch of undocumented details to sweat over.
For http://kutoken.com/, our Django hosting service, we've spent quite a while packaging Django apps into .deb format, so our users can for example just 'apt-get install python-django-tagging' to have tagging support in their app (for a really simple example). Now I've got used to working with a system like that, I really couldn't go back to individual tarballs and setup.py and the like.
If your web app needs complicated deps, it sucks. Which is kind of my point about Pinax.
It's fucking embarrassing that you can simply untar some very complicated PHP applications and they work fine right out of the box on insanely varied versions of php/httpd/db software and with something like Pinax you need to spend 3 hours chasing down bugs and asking people on IRC what the hell is going wrong.
Django was designed to make things easy, not hard.
There are lots of projects (including Pinax) that you can reference to help you figure out how to do things yourself.
...is a site that lists django related projects. You can also just google stuff. There are a bunch more on Google Code and on github.