29
Oct
2008

django, seo

Django sitemap class for named views

This sitemap class allows you to specify which named views your sitemap should include. Useful for views that don't map to models, or when you don't want to include all your flatpage or direct-to-template URLs.

23
Oct
2008

django, proxy, ssl, wsgi

Django WSGI handler and SSL proxies

When serving both HTTP and HTTPS in my preferred deployment setup — nginx in front of Apache with mod_wsgi running Django — I had to figure out how to let Django know whether a request was secure or not. Here's how I did it.

21
Oct
2008

ajax, django, jquery

AJAX upload progress bars with jQuery, Django and nginx

I've included upload progress bars on a couple of Django sites. Thanks to the new file handling in Django 1.0, a code snippet from djangosnippets.org, and jquery-upload-progress, it's really not difficult, but I haven't seen a complete example, so I put together a demo app showing how the pieces fit together. I'll also cover the case where you want a proxy to provide the upload progress tracking, without involving Django.