Archive for the 'tips' Category

Tweaking Django Admin with Javascript

Saturday, August 5th, 2006

One of the only problems that has slowed us down while developing our CMS has been the steep learning curve associated with changing some functionality in the built-in admin without writing it as a custom view. This problem reared its head again when I was building the score module which essentially extends our calendar module (i.e., some calendar events happen to be athletic competitions, and athletic competitions have additional information like scores, etc.) The way we have laid things out, creating a score happens on its own page (separate from the main calendar editing page) and involves selecting the calendar item to establish the foreign key relationship between the score and calendar item. The problem was that the list of calendar items was too long – at best I could filter it so that it would only display sporting events, but I really needed to filter one step further to the specific sport.
(more…)

How to Install Django on Linux – Painlessly

Saturday, August 5th, 2006

With Django 0.95 being introduced being introduced a few days ago, I figured a quick post on what we experienced installing Django might help someone out. None of this covers new ground, but perhaps another telling of the story will provide someone an extra hook to grab onto.
(more…)

LDAP Authentication in Django with Backends

Monday, July 24th, 2006

After having written a custom LDAP authentication process for django before 'multi-auth' hit the trunk, I decided I'd rewrite what I wrote in the new and purportedly easier to use backends system. Rumors that it was chiefly because a subversion update had caused my old code to break are greatly exaggerated. (*cough*) However, I'm quite glad I decided to take the plunge. It seems Django's new backends system has really made multi-faceted authentication dead simple.
(more…)

How to implement Drag and Drop lists with Django and Dojo

Wednesday, July 5th, 2006

Our application manages news items which can be assigned to any number of topics. The sequencing of the news items within each topic can be set independently of the sequencing of items in other topics. We wanted a simple drag-and-drop interface that would allow us to set the order of items in a topic.
(more…)