News for hackers. Stuff that matters.
Re:Our custom Django mixins by rlander on Friday March 02, 2012 @01:26PM (#3657666)
Those snippets were taken from utkik's docs and are probably part of a larger code; but I agree they probably belong somewhere else, maybe in a middleware.

BTW, thanks for the nice post. Is the code available on github or bitbucket?

Re:Our custom Django mixins by kennethlove on Friday March 02, 2012 @04:34PM (#3658480)
Yeah, it is actually.

https://github.com/brack3t/django-braces is the Github repo, or you can ``pip install django-braces`` into your project. All the mixins are then imported from the ``braces`` package.