Simon Willison’s Weblog

Subscribe

Items tagged django in 2011

Filters: Year: 2011 × django × Sorted by date


Is there a way to find out what apps are used by a specific django-based website?

Not really. You might be able to figure out some of them by looking out for common patterns of URLs and form field names, but a lot of reusable django apps don’t really expose much of a signature.

[... 60 words]

What are you some good blogs, videos, papers, etc. on scaling Django?

We’re building up a pretty sizable collection of video (and slides) from talks about Django on http://lanyrd.com/—including plenty that talk about scaling issues. Try this: http://lanyrd.com/search/?q=djan...—we have 16 videos and 16 slide decks from talks at events all over the world.

[... 102 words]

Why does Django still not have support for multiple joins?

I don’t fully understand the question, but if you’re talking about doing a single join across multiple tables the Django ORM handles that just fine. Let’s say you want to get every BlogEntry written by a User who belongs to the Group with the name “admins”:

[... 67 words]

CSRF: Flash + 307 redirect = Game Over. Here’s the exploit that Django and Rails both just released fixes for. It’s actually a flaw in the Flash player. Flash isn’t meant to be able to make cross-domain HTTP requests with custom HTTP headers unless the crossdomain.xml file on the other domain allows them to, but it turns out a 307 redirect (like a 302, but allows POST data to be forwarded) confuses the Flash player in to not checking the crossdomain.xml on the host it is being redirect to. # 10th February 2011, 10:07 pm

Is South the best tool to use when doing database migrations in Django?

Yes. And I say that as an author of another Django migrations tool (dmigrations) which offered a small subset of South’s current functionality.

[... 42 words]

Which web server suits Django best? Apache, Nginx or something else?

I’m still a big fan of a stripped down Apache+mod_wsgi running behind nginx.

[... 98 words]

What is the best way to debug a Django app?

The Django Debug Toolbar is essential: http://robhudson.github.com/djan...

[... 95 words]

The First Few Weeks—ep.io. Another take on managed Python Django/WSGI hosting, from Andrew Godwin and Ben Firshman. # 13th January 2011, 4:25 am

Hello from Gondor. “Effortless production Django hosting” from the Eldarion team. # 13th January 2011, 4:24 am

Why isn’t the schema and data migration tool South included in Django by default?

Because shipping things as part of Django means they can’t have separate releases, which means you only get a new released version every 6-12 months. South is improving far faster than that.

[... 113 words]