Django, Python, & Random Leftovers

Articles by Category: Python

Setting Up MediaWiki 1.13 with mod_auth_pgsql Authentication

Posted September 24, 2008

I created an internal wiki for our team, and I needed to password-protect the whole thing. I didn't want users to have to authenticate themselves to Apache, then get to the wiki pages and have to log in again, so I went looking for an automated solution. I found info on doing it with MySQL, but not with PostgreSQL.

Telling Subversion to Ignore .pyc Files

Posted July 30, 2007

I'm always forgetting how to tell Subversion that it should ignore .pyc files, so I figured I'd write it down.

Working With Lists

Posted July 26, 2007

While attempting to add lists together today, I ran into something unexpected - I was using append() when I should have been using extend(). I've also added a quick gotcha for sorting lists and returning only unique elements.

Setting Django Environment Variables in a Python Script

Posted July 15, 2007

If you use the Django database API from a Python script, you will probably need to set the DJANGO_SETTINGS_MODULE and PYTHONPATH environment variables. Read on to find out how.

Articles by Category
Python, Django, Subversion, Mac, Linux, PHP, PostgreSQL