Simon Willison’s Weblog

Subscribe
Atom feed for django

571 posts tagged “django”

The Django web framework.

2008

World’s ugliest Django app. Brilliant hack from Paul Bissex: a self-contained Django application in 70 lines of code which shows off some internals trickery and makes use of a bunch of handy django.contrib packages.

# 22nd January 2008, 1:34 am / django, paul-bissex, python, selfcontained

Django at PyCon. Unfortunately I’ll be missing US PyCon this year (I’ll be at SxSW and Webstock in New Zealand though)—but it’s great to see that there’s a strong line-up of Django related presentations.

# 21st January 2008, 9:54 pm / django, pycon, python, sxsw, webstock, conferences

django-evserver. Marek Majkowski got Comet working with Django using a custom WSGI server that wraps libevent using ctypes.

# 19th January 2008, 12:15 pm / python, django, comet, wsgi, libevent, ctypes, djangoevserver, marekmajkowski

Django Developer Jobs. Just an observation: the Django job market is booming at the moment, with 16 new job ads posted so far this year (that’s nearly one a day). If you want to be paid money to develop in Django there’s never been a better time.

# 18th January 2008, 3:51 pm / python, jobs, django

Django snippets: “for” template tag with support for “else” if array is empty. A neat solution to a common pattern; I’d personally like to see this included in Django proper.

# 16th January 2008, 9:42 pm / django, python, templating, django-snippets

A little something I’ve been working on. Paul Bissex has been working on a Django book with Jeff Forcier and Wesley Chun, to be published by Prentice Hall. It sounds like they’re a good way along the process.

# 14th January 2008, 10:47 pm / django, paul-bissex, wesley-chun, jeff-forcier, python, prenticehall

Good architectural layering, and Bzr 1.1. Mark Shuttleworth on the growing importance of plug-in architectures as an open source project evolves, as they allow new developers to release their own components without needing commit access to the project. Django is pretty good for this, but more hooks (and a faster event dispatch system) would be useful.

# 9th January 2008, 2:06 pm / hooks, bazaar, bzr, dispatch, django, events, mark-shuttleworth, open-source, programming, python

Job: Django developer in London. I’m consulting with GCap Media at the moment, who are looking to hire full-time Django developers in London for some really interesting projects. Please feel free to contact me directly with questions.

# 7th January 2008, 9:37 pm / django, jobs, gcapmedia, python

Announcing StaticGenerator for Django. Simple but powerful static file generator for Django applications—just tell it about your model instances and it will create an entire static site based on calling get_absolute_url() on each one. Uses signals to repopulate the cache when a model changes.

# 7th January 2008, 9:26 pm / django, performance, static, caching, orm, staticgenerator, jared-kuolt

Google apps for your newsroom. How the LJ World team use online tools like Google Spreadsheet, Swivel, ManyEyes and Google MyMaps to collaborate with the newsroom and build data-heavy applications even faster.

# 7th January 2008, 9:24 pm / news, journalism, ljworld, django, manyeyes, google, mymaps, google-maps, google-calendar, google-docs, newsroom, collaboration, matt-croydon, data-journalism

FUD and TurboGears. Not cool: the TurboGears guys have been targeted by some (hopefully not deliberate) FUD along the lines of “the author of the TurboGears book is using Django now”, based on Mark posting about his research in to other frameworks.

# 7th January 2008, 9:02 am / mark-ramm, python, turbogears, django, fud

Django Tip: Complex Forms. Malcolm demonstrates some advanced tricks with newforms.

# 6th January 2008, 10:14 pm / newforms, django, python, malcolm-tredinnick

Filtering foreign key choices in newforms-admin. A nice introduction to the Django newform-admin branch, including an example of how to easily implement row-level permissions.

# 6th January 2008, 8:31 pm / django, newforms, newformsadmin, python, christian-joergensen, django-admin

Django on Jython (via) Outstanding work from Jim Baker and the Jython team: Django now runs on the modern branch of Jython, with a couple of patches and some failed doctests due to dictionary order (a problem with Django’s test suite).

# 4th January 2008, 12:35 pm / django, jython, unittests, doctest

Chatting with Adrian Holovaty. Fabio Akita interviews Adrian about Django and related topics.

# 1st January 2008, 11:44 am / django, adrian-holovaty, python, fabioakita

This Week in Django podcast. Michael Trier’s been doing a really fantastic job putting together a Django podcast. The most recent episode (number 4) includes an update on the newforms-admin branch and a couple of handy tips.

# 1st January 2008, 10:44 am / django, michael-trier, thisweekindjango, python, podcasts, django-admin

2007

django-mptt (via) Jonathan Buchanan’s simple utility for performing Modified Preorder Tree Traversal (efficient tree operations in SQL) on Django models.

# 29th December 2007, 11:33 am / modifiedpreordertreetraversal, mptt, django, python, djangoorm, models, jonathan-buchanan, sql

Django and Comet. How to build a chat application using Django and the Orbited comet server. Orbited can be set up to proxy most requests through to a Django backend while handling any comet requests itself.

# 26th December 2007, 9:05 pm / comet, django, orbited, javascript, python

WebOb. WebOb is “an extraction and refinement of pieces from Paste”—provides a very nice request and response object, clearly inspired partly by Django. The documentation includes the differences between the WebOb API and that of other frameworks.

# 23rd December 2007, 10:22 am / python, webob, paste, ian-bicking, django, frameworks

Using Unipath to Keep Things Portable. Django tip to avoid hard-coding full paths. I usually set a global called OUR_ROOT in settings.py using os.path.dirname(__file__) and use os.path.join with it to construct any other paths that I need.

# 21st December 2007, 10:45 am / django, python, unipath, michael-trier, settings

Frameworks Exist for Conceptual Integrity. Adam Gomaa just taught me a bunch of interesting things about Django’s underlying philosophy. Looks like I need to re-read the Mythical Man-Month.

# 17th December 2007, 1:58 pm / mythicalmanmonth, django, adam-gomaa, python, frameworks, conceptualintegrity

Chapter 7: Form Processing. The chapter on newforms I contributed to “The Definitive Guide to Django” is now online, along with the rest of the published book.

# 16th December 2007, 9:44 pm / newforms, django, django-book, writing, python

Two-Faced Django. Excellent Django tutorial by Will Larson that shows how to build a polling application with an interface both on the Web and in Facebook. Also touches on unit testing and Ajax using jQuery.

# 14th December 2007, 2:44 pm / ajax, jquery, javascript, django, python, tutorial, facebook, pyfacebook

“The Definitive Guide to Django” is now shipping from Amazon. The book looks absolutely fantastic (bias disclosure: I contributed the newforms chapter)—huge congratulations to Adrian and Jacob.

# 11th December 2007, 9:12 pm / django, django-book, books, apress, amazon, adrian-holovaty, jacob-kaplan-moss

Updates to template_utils. James Bennett’s Django template_utils library now provides tags for consuming external RSS and Atom feeds. Combine with template fragment caching for an instant mashup written just using templates.

# 10th December 2007, 3:25 pm / james-bennett, django, templateutils, rss, atom, feeds, universalfeedparser, python

Django snippets: Authenticate against Active Directory. Uses a custom authentication backend with the Python ldap module. If Django hasn’t seen the user before a new Django user account is created with data from ldap.

# 10th December 2007, 8:40 am / ldap, activedirectory, django, authentication, python

Blogmaker, a free blogging app for Django (via) “Blogmaker is a full-featured, production-quality blogging application for Django. It supports trackbacks, ping and comments with moderation and honeypot spam prevention.”

# 7th December 2007, 1:04 am / blogging, django, michael-trier, trackback

Django Basic Apps. Nathan Borror has released a suite of simple, reusable Django applications: Basic Blog, Basic Places, Basic People, Basic Library and Basic Profiles.

# 5th December 2007, 3:30 pm / nathan-borror, django, python

If you only remember one thing about handling non-HTML output via Django: know that you can use the HttpResponse object as if it were a file. Writing to such an object and returning it will give you the output you wrote. It's a very simple concept, but one that translates well to third-party libraries.

Alex de Landgraaf

# 3rd December 2007, 8:44 pm / python, django, views, httpresponse, alex-de-landgraaf

First Notes on Django. Cool, the IETF are developing internal tools with Django.

# 3rd December 2007, 11:38 am / ietf, django, python