-
posts
-
Administer WordPress using Django's Admin
I recently came across one feature of Django that seemed pretty useful for one
off projects and customizations and was startled because it’s one of Django’s
least mentioned features. In fact, I’ve been using Django at work for over 5
years now ...
-
Mixins and Python
Python supports a simple type of multiple inheritance which allows the
creation of Mixins. Mixins are a sort of class that is used to “mix in”
extra properties and methods into a class. This allows you to create
classes in a compositional style.
...
-
Phantom QUnit Test Runner
I have been using PhantomJS and
QUnit for a while now to run JavaScript automated tests.
I like QUnit because has a decent in-browser UI but also has a nice extension
API so you can create plugins and output in different formats if you like.
Ho...
-
My Love-Hate Relationship with JavaScript
I have a love-hate relationship with JavaScript. Well, more hate and less love
but I find myself conflicted when I write it. JavaScript simply makes it hard
for me to write good code. As a little background, the JavaScript I write is
almost exc...
-
Django's contrib.auth and django-newauth
Recently there have been a lot of conversations on the Django mailing list about
fixing the auth module. Here are some of the recent mailing list threads:
authentication by email
auth.User refactor: reboot
auth.User: The abstract base clas...
-
Python Sets
I had an application with two lists of unique items that I wanted to
take the intersection of. I had figured that using a python set would be
faster but I didn’t realize that it would be faster than the simple list
comprehension by this much.
~$ ...
-
Kay 1.1 Released!
The Kay team just just released Kay 1.1! I want to thank Takashi Matsuo,
Nickolas Daskalou, Tasuku Suenaga, and Yosuke Suzuki for their hard work on this
release.
Kay is a web framework made specifically for Google App Engine. The basic
design...
-
An introduction to the Tipfy Framework for App Engine
(This post is the English translation of the Dec. 24th edition of the Python
Web Framework Advent Calendar 2010. Other posts
can be found on that page, though they will be in Japanese)
I usually use the kay framework for
App Engine development as...
-
bpssl - The Django SSL Support Application
The other day I released bpssl which is a Django application that helps you
support HTTPS on your website. The main functionality is performing redirection
for HTTPS only URLs and views. For instance, if a request for your login view
/login is rec...
-
Cron only decorator for App Engine
For a recent project I recently I have been using App Engine’s cron
feature to aggregate data and perform maintenance tasks. However, since
cron is a simple web request, if a user accesses that url then the cron
job will run. In order to prevent n...