Managing Your Pythons with Pyenv

Posted:

Tagged as:

With the impending release of Python 3.5 it's that time of year when everyone wants to update their Python 3 version or add another Python to the list of installed versions.

I use pyenv to manage my Python versions. It allows you to install various versions of Python ...

Classify: Python API Reference Tool

Posted:

Tagged as:

Not too long ago some colleagues of mine created ccbv.co.uk, a documentation tool for Django's Class Based Views. CCBV differs from Django's usual documentation by being providing users with an API reference to the members of each Class, including any inherited ones. This is especially useful ...

Inspect's Hidden Gem: classify_class_attrs

Posted:

Tagged as:

Inspect provides a wealth of functionality for inspecting code, however one of it's most useful features is undocumented. Say hello to classify_class_attrs.

classify_class_attrs takes a class and returns a list of Attribute objects, each containing useful information about a member of the class. An Attribute object looks something like ...

Setup Single Sign On in Django using Google OAuth2

Posted:

Tagged as:

We recently had our second Incuna Hack Day where Charlie and I made the decision to start breaking up the main internal site, our venerable Dashboard. It was well on its way to becoming a monolithic beast and the only thing that had stopped me breaking it up before was ...

Adding Django Inline Forms with Javascript

Posted:

Tagged as:

Using Django formsets on a new section for a project at work I came across something I haven't considered before: adding new inline forms to a formset without reloading the page. Javascript was the obvious choice. Two pages required the functionality: one with six formsets, the other with one ...

1 of 2 »