Elf Sternberg

Done, and gets things smart.

So, I got tired of the way Django-SocialAuth was borked and not working for me, so I forked the project and have put up my own copy at GitHub.
There are three things I noticed about the project right away: First, it forces you to use a broken templating scheme. I haven’t fixed that, but [...]

For the past few days, this has been bugging the Hell out of me and I finally decided today to knuckle down and figure out how the hell Python decorators-with-arguments work.
Basic Decoration
The basics: A python function takes arguments, performs a task, and returns a value. A decorator takes as its argument a function, [...]

This is part 3 of a series.
In part 1 we set up a Hudson test server, and in part 2 I introduced a simple Django application with some simple tests.
Now we’re going to make Hudson run those simple tests. Prerequisites: Your box for running this application must be able to run both Hudson and [...]

This is Part 2 of a series.
Before I demonstrate how to do continual integration testing, I need a demonstration application. I’ve chosen a simple Django application, your basic echo program, with no styling or media at all. This ought to be more than enough to demonstrate base functionality.
A New Django Project
Start by building [...]

Eddie Sullivan at Chickenwing Software has a fascinating post entitled The Facebook Platform is Dead. I agree with many of his comments. I don’t think there’s anything terrible about the “Facebook Certified Application” program; that’s a business decision, not a software policy decision. But Sullivan says one thing that set me off. [...]

Django Signals: The Rules

I use Django signals a lot in my professional work, mostly to create specialized tables that track events in the ecosystem of social networking sites that I build.  For example, if I make a post on a social networking site, that causes an event that creates a signal.  That signal will be heard by, for [...]

Rails-like environments with Django.

I needed some rails-like environment settings using Django.  This is the quick and easy way to get that done.   First, after building your “settings.py” file, create an environment under your project root named “env“.   Move your settings.py file to this directory, rename it “development.py”
Now, in your root directory, open up a new file named “settings.py” [...]

Ah, the bleeding edge.  It’s a war out there!
This morning, Facebook released fbwatir. I’ve just spent the past few hours knocking it around, and have come to the conclusion that it’s pretty mega-borked but it can be saved.
In fact, I now have it working with Cucumber and Firewatir. There are several major [...]

Off in the weeds again…

Sigh.
I’ve just spent the last few hours wandering around the various “open source” analytics programs trying to find the exact right fit for what I want.  I’m not finding it, which means that (headache ahead) I may have to write something myself.  There’s a django-analytics placeholder in GoogleCode, but it’s empty.  I at least have [...]

We frequently write little functions that populate the Django context, and sometimes we want that context to be site-wide, and we want every page and every Ajax handler, basically everything that takes a request and spews a response, in our application to have access to that information.  It might the user’s authentication, or his authorization, [...]

« Previous Entries  Next Page »

Recent Entries

    Recent Comments

      Most Commented