Archive for August, 2014


So I got a more advanced template structure up and running in my project thanks to Django’s inheritance feature in the template system. It is a HUGE time saver and lets you reuse redundant code like that from headers and footers with one simple django command instead of copying and pasting the code into every template every time you change it.

When you’re working with an app like Django, its really important to read the documentation and understand what shortcuts are available in the latest version.

I was looking to customize my form for creating comics, and when I looked online there are a million convoluted ways to get it done, many of which were from old versions of Django.

In the end the documentation told me it was as simple as calling the custom widgets with just one variable in the form and then calling the field names attached to them in double curly braces {{}} in the template. Bottom line, make sure you check your documentation every time you go researching and avoid a lot of headaches.
librarian-cartoon