-
How I Learnt enough Python/Django to be Dangerous in One Month
Nice piece describing the process one person took to understanding the basic of Python and Django.
Visit -
Go ’head, Mr. Lendle
About a month ago, I got a call from Brian Ford, who happens to be my cousin. Brian’s wife, Carolyn, had come up with an idea and Brian wanted my thoughts. Amazon had recently rolled out a new feature that allows users to lend Kindle books to others using their e-mail address. This, in effect, means you can really only lend books to people you know (because you probably don’t know many stranger’s e-mail addresses). Carolyn’s idea was simple: what if there were a site that could hook you up with a stranger that has the book you want, so they can lend it to you?
Although I owned exactly zero Kindle books and in the past five years have literally written more books than I’ve read, it sounded like a pretty great idea, and I was interested in building it. The first thing I did was call up my homeboy Nathan Borror, whom I trust implicitly on all things, but especially all things web and all things books. Nathan runs social book site Readernaut, and I figured he’d be able to help me understand the ins and outs of how a service like this might work, and he’d probably also know if something similar was already out. Nathan dug the idea and said wasn’t aware of anyone else already doing it. I was sold. That same night, I dug into Amazon’s Product Advertising API to see if I could make this thing happen.
More -
Tracking changes to fields in Django
David Cramer shows off the clever solution they use at Disqus for tracking changes to fields on Django model instances.
Visit -
Django Advent - Messages for the rest of us
My article on Django Advent, covering the new messages framework for Django 1.2.
Visit -
Presentation: pip and virtualenv | mathematism
Great resource.
Visit -
MichaelMoore.com, now powered by Django
Just a kinda cool big-name site that recently switched to Django.
Visit -
django-filter
Alex’s django-filter looks pretty badass. Coulda used this while building 97 Bottles!
Visit -
django-sorting
Not sure how I never saw this before, but it looks like something I can make great use of. It’s inspired by django-pagination, and works pretty much the same way, but for sorting, instead.
Visit -
django-lean: A-B Testing for Django
Very cool-looking A-B testing framework for Django. Would love to play with this, but it has some pretty ridiculous dependencies, such as South (which I don’t use). Would love to see something like this that was a bit more generic and didn’t require so much.
Visit -
Django Dose
A nice new Django community site by Kevin Fricovsky, Alex Gaynor, Brian Rosner, and Eric Florenzano. Good stuff!
Visit -
Xian’s django_compressor
I’ve tried pretty much all of the Django CSS and/or JSS compression apps, and Christian Metts’ django_compressor looks like the winner to me. Why? Mostly because it doesn’t make me list all my CSS/JS files in my settings — it just reads it straight from the
Visitlinkandscripttags in my HTML templates. This is how it should be. Well-done, Xian! -
django-gatekeeper
Generic moderation of Django model instances. Very cool — great idea.
Visit -
django-shorturls
Borrowing code from Simon Willison, Jacob Kaplan-Moss has written up a proper reusable Django app for hosting your own short URLs (which is way more future-proof than using most of the URL shortening services out there). I may have to tack this on to 97, as well as our upcoming app…
Visit -
Christian Metts’ django_inlines
Nathan Borror, myself, and probably others have built “inlines” functionality for Django apps in the past (and to give credit where it’s due, the idea originally came from http://ellingtoncms.com), but Christian appears to have won this round. His new django_inlines is the most thorough, most Pythonic, most robust, and most flexible solution I’ve seen yet. I’m definitely using this next time I need inlines. On the flip side, it is a bit more complicated to get set up than the solutions Nathan and I came up with — but if you’re used to dealing with Django apps, you’ll won’t have a problem.
Visit -
A Detailed Django Tutorial: Blog Basics Part I
Part one of what looks like it will be a very detailed a through “building your first Django app” tutorial. Nice.
Visit -
django-lfs (Lightning Fast Shop)
I haven’t had a chance to play with this, but I’m glad to see it out there. Satchmo, the de facto Django ecommerce solution, is terrific, but it’s also pretty large, complicated, and overkill for many sites. It’s nice to have a simple solution, as well.
Visit -
Jacob Kaplan-Moss: It’s time for a change
My buddies Jacob and Frank Wiles have started a new kind of Django company: they’re focusing on supporting and maintaining your apps after you’ve written them. We all know Django makes writing apps very easy, but if you have some success, you might find yourself stuck on scaling, optimization, obscure bugs, and the like. Jacob and Frank want to be your go-to experts on these issues. Good idea.
Visit -
Django snippets: Smart {% if %} template tag
A terrific drop-in replacement for Django’s built-in {% if %} tag, this one includes logical operator support. I have a series of filters I use for logical operators in Django templates and while it works well, I think this approach is better. Plus, it’s 100% backwards-compatible with the built-in {% if %} tag, so it’s really easy to get started using it. Nice.
Visit -
Josh Works: Worksology
The talented Josh Works has redesigned his personal site with a great mid-century style. He also used my Savoy as the basis for the site’s backend, so it’s another example of what Savoy can do. Check it out!
Visit -
Django snippets: Hide Emails
Useful snippet from Brent O’Connor: obscures e-mail addresses in your content (by using JavaScript to render a link which contains the email encoded in a random string of hex digit or decimal digits). Nice.
Visit -
django-haystack
Daniel Lindsley’s search app for Django looks wonderful. The API is perfect, and feels very “Django.” It matches up very closely with how the admin APIs work, so it feels great. Currently has support for about five different search engine backends. I wonder if there’s a chance it will eventually support regular SQL backends, as well? One of the things I liked about djangosearch was that the same app could handle simple SQL backends and something like solr when I needed it. Good-looking stuff, here. Excited to try it out.
Visit -
Django 1.1 alpha 1 released
! New features include SQL aggregation, query expressions, testing performance improvements, and more.
Visit -
Malcolm: Some Simple Django Debugging Tools
Malcolm drops some debugging knowledge on your ass. Good stuff.
Visit -
django-ratings
Good, flexible-looking Django ratings app by David Cramer. Might have used this for 97bottles.com if it’d been available at that time.
Visit -
django-paypall
Looks like a pretty sweet PayPal integration app for Django.
Visit -
django-tracking
Useful-looking pluggable Django app for visitor tracking. Keeps tracks of visitors to your site, the ages they view, their IP address, their user agent, etc. Simple stuff, but this appears to be a very clean implementation. I wonder if something like this should be included with Django as part of
Visitcontrib. -
NYTimes: Represent
Cool new app from The New York Times that lets New Yorkers keep tabs on what their elected officials are doing. It’s built on GeoDjango. Nice to see Django continue its massive penetration into the news and journalism worlds.
Visit -
Integrating Facebook Connect with Django in 15 minutes
Niiiiiice. I hate to say it, but OpenID may be dead.
Visit -
Django snippets: Django template object jsonify
Simple, but very useful Django template tag.
Visit -
Lisa Simpson: crossword fan and … Django developer?
Funny. Nice catch, Leah. :)
Visit -
python-markdown2
Pointed out to me by Josh Works, this newer version of Markdown for Python is faster, cleaner, more complete, and API-compatible with the pervious version. In a 10-minute play-with session, it feels noticeably faster, with no apparent negative side effect. w00t!
Visit -
Django snippets: PyIf Template Tag
Nice replacement
Visitiftag for Django templates which supports a lot more types of conditionals. It sounds like the author aims for this to go into Django proper and replace the built-iniftag. My personal opinion is that would not be a good idea; there are very sound reasons why Django’siftag is as simplistic as it is. But, if you need something more robust and powerful, give this a shot. It looks nice. -
django-schedule
This looks like an absolutely fabulous reusable Django app for events and scheduling. I’ve never been too happy with the events piece of Savoy, so I could easily see it getting replaced with this. Be sure to check out Tony Hauber’s great blog post about it, too.
Django projects become more plug-and-play everyday. So exciting.
Visit -
Django Days
A new site dedicated to all things Django.
Visit -
django-reversion
Another approach to version controlling the content in your Django database. This one looks remarkably good, at a glance. It stores revisions in the database, rather than an external version control system, and can be added to an existing project with just a few lines of code (and no modifications to your existing models). Looks very slick. I only have one question: what happens when you make a schema change to a versioned model (i.e. add/change/delete a field)? I’m going to assume this would render the versioned content unusable, but I’m not sure about that. Anyone know?
Visit -
Big list of Django tips (and some python tips too)
My man Eric Holscher drops some Django and Python knowledge on your asses. A lot of good stuff, here. Check it out.
Visit -
django-faq
Kevin Fricovsky released this reusable FAQ application for Django. Perhaps even more interesting than a useful FAQ application, it’s a great example of an app that has been built to be as reusable as possible. I’m wanting to refactor Savoy to be as reusable as possible, so this is a terrific example. Good stuff, Kevin!
Visit -
DjangoCon 2008: Pinax
James Tauber’s talk about Pinax at DjangoCon is a really great look at Django’s killer feature: reusable apps. Pinax is basically a collection of reusable apps — some of which were built for Pinax, and others which are independent of it — that allow one to put together a site very quickly (especially if your site is centered around social networking, as that’s much of what Pinax provides at this point). The basic concept is to separate bits of functionality (friend relationships, commenting, tagging, voting, registration, etc.) from what James calls the “domain object.” The domain object is what makes your site unique. For flickr, it’s photos. For Newsvine, it’s news stories. For Cork’d, it’s wine. If Pinax can provide all the non-domain object bits, all you have to do it build your domain object, and you’re set. Even if you’ve no interest in writing Django apps, it’s a good discussion of modularity and how this stuff works when it’s done right.
I was also surprised and excited to see that the approach I’ve taken with Savoy. While Savoy is more content management oriented (and Pinax is more focused on social networking), the basic structure of the two projects is very similar. Savoy has a set of third party apps it pulls in, as well as a set of “core” apps that are required. On top of that are “contrib” apps that are all optional. So, you simply install the core apps, then pick and choose which contrib apps are appropriate for your project, and you’re off to the races. I’m working to make all of these apps as reusable as possible. This is an ongiong process, and chances are the first will release won’t be as reusable as I’d like. But, pluggability will always be a primary goal. Finally, you can of course run your own apps alongside Savoy’s apps. Some apps even have hooks to integrate your own apps where appropriate (for example, the aggregator app, which runs my tumblelog, will aggregate content from any model of your choice, not just those that Savoy itself provides).
If you’re interested in building a social sort of site, or how best-of-breed reusable Django apps are built, definitely check out Pinax, and James’ talk about it.
Visit -
10 Insanely Useful Django Tips
Glen Stansberry writes on Django for NETTUTS. Nice. Django is really getting a lot of run lately!
Visit -
This Week in Django 38
The latest episode of TWiD has a great interview with Leah and Mike of Pownce. If you’re interested in scaling and how a high-traffic, high-profile site run on Django, do check it out.
Visit
