Archive for the 'Chris' Category

Django flatpages on steroids – our 'Page' application

Monday, August 14th, 2006

Given the nature of the site we need to manage, which has lots of time-sensitive content AND lots of relatively static content, figuring out how to deal with the more static, often free-form content was a big issue for us in formulating a plan to use Django to create Sputnik. Built into Django is the notion of flatpages – static files that are served in situations where a URL doesn't map to a normal Django view/function. We were looking for something that would allow content managers to work within the standard Django admin interface to maintain the content of their basically static, free-form pages, while still taking advantage of Django's templates for basic "window dressing" kinds of stuff (banners, standard navigation, etc.)

To accomplish this we decided we'd create a beefier version of flatpages. Here's the rundown of what we wanted out of a good static-page manager.
(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…)