Detecting XHR on AppEngine WebFramework

I don’t know if it was lack of documentation (I doubt), but I was looking for a way to detect if a random view was being accessed from Ajax or not. This is a common practice in Django to avoid creating two different views when the purpose is the same, except for the request.

I even adapted the Django src code of the django.http HttpRequest to do an equivalent request.is_ajax()…

No need…

Read more…

Django flatpages

Never had to use flatpages before in Django but when I did, found a minor ‘?bug?’ at v1.1.1 that, is nothing special but, could ‘mindbrick’ some of us.

Here’s the quickest/normal way 😀

Read more…

10
Nov 2009
POSTED BY
POSTED IN Django
DISCUSSION 0 Comments