Django Class Based View: email form with CAPTCHA

Source article: Django Class Based View: email form with CAPTCHA Yesterday I showed how to implement a simple email form for Django using Class Based Views. Today I’m going to extend yesterday’s work to use the excellent RECAPTCHA service to help reduce spam content. This version requires pip installing the following into your virtualenv. pip […]

Django Class Based View: email form with CAPTCHA

Source article: Django Class Based View: email form with CAPTCHA Yesterday I showed how to implement a simple email form for Django using Class Based Views. Today I’m going to extend yesterday’s work to use the excellent RECAPTCHA service to help reduce spam content. This version requires pip installing the following into your virtualenv. pip […]

Django Class Based View: email form with CAPTCHA

Source article: Django Class Based View: email form with CAPTCHA Yesterday I showed how to implement a simple email form for Django using Class Based Views. Today I’m going to extend yesterday’s work to use the excellent RECAPTCHA service to help reduce spam content. This version requires pip installing the following into your virtualenv. pip […]

Secs sell! How I cache my entire pages (server-side)

Source article: Secs sell! How I cache my entire pages (server-side) I’ve blogged before about how this site can easily push out over 2,000 requests/second using only 6 WSGI workers excluding latency. The reason that’s possible is because the whole page(s) can be cached server-side. What actually happens is that the whole rendered HTML blob […]

Choosing an API framework for Django

Source article: Choosing an API framework for Django First off, out of the box, Django lets you construct API responses with a little work. All you need to do is something like this: # Copied from https://docs.djangoproject.com/en/1.4/topics/class-based-views/#more-than-just-html from django import http from django.utils import simplejson as json class JSONResponseMixin(object): def render_to_response(self, context): "Returns a JSON […]