yourlabs/django-session-security — pull request #16 by qwindelzorf (2014-02-10 06:35:36+00:00)
Title: Fixing import error that shows up under Django 1.5

This `try: except:` block appears to be backwards. It should be trying the "new" import, and failing over to the old style if the new one is unavailable. Instead, it appears to be attempting the old one, and if that fails going to the new one. This resultis in the `except` block triggering every time under Django 1.6, and the base case executing under Django 1.5, which makes debugging interesting.

Given that the goal here is to support 1.6, with the option to fail back to 1.5 if needed, I believe it would make more sense to invert these two, as indicated in this pull request.