2009
08.27
I’ve been digging into Django’s code as much as possible recently to understand it architecture and in doing so have stumbled upon some nifty methods and utilities. The following utilities are available by importing any of the following modules from django.utils:
Read More >>
2009
08.26
This is a simple class created to demonstrate the use of keyword arguments in python. I find kwargs very usefull, however because they’re not predefined thay can not be required unless a required kwarg method is included – but you may as well rather just use defined params in that case:
Read More >>
2009
08.20
This is a very simple python function you can use to generate secure passwords. Note the use of the sting ib versus my first attempt.
Read More >>
2009
08.05
This an easy way to see the SQL that Django auto-generates for you. I discovered while trying to write a very complicated bit of SQL with INNER JOINS ect, cheating? I know but why not?
Read More >>