Simple spam defense for Django comments
A simple way to block comment spam with the Django 1.0 contrib comments application.
A simple way to block comment spam with the Django 1.0 contrib comments application.
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.
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.