Django and Relativity

  • June 20th, 2008 (1 week, 6 days ago)

My default Django settings file has changed over time to now include settings that do not depend on the location of the project on the filesystem. This is great in a team environment where more than one person is working on the same project, or when deploying your project to a web server that likely has different paths to the project root directory.

There are essentially 2 places that are looking for a filesystem path:

  1. Templates
  2. Media

Let's assume the following directory structure for a Django project:

.
|-- media
|-- myproject
    |-- __init__.py
    |-- manage.py
    |-- settings.py
    |-- templates
    |   |-- base.html
    |-- urls ...

Previously...

Command Line History

  • April 11th, 2008 (2 months, 3 weeks ago)

One of our Django sites finally went public

  • March 21st, 2008 (3 months, 2 weeks ago)

Google Charts API adds maps

  • March 20th, 2008 (3 months, 2 weeks ago)

Photos2008 Jun 26

Family Shadows

Everybody hold hands!

Family Shadows

Link2008 Jun 26

mallipeddi's django-yslow at master — GitHub

A very nice Django app following the YSlow recommended best practices for optimizing your website. It includes Django management utilities to minimize and concatenate CSS/JS, version it for cache busting, and upload to S3 and set appropriate expiry and content-encoding headers.

Link2008 Jun 25

pytoss - Google Code

A remote deployment tool written in Python with a focus more on shell commands than recipes for simplicity.

Link2008 Jun 24

Django code_swarm on Vimeo

Visualization of Django commit history. I especially liked the near end when the queryset refactor branch landed on trunk and results in a firework like display, then just moments later a couple more fireworks as the other branches merge with trunk.

Link2008 Jun 18

The Champagne of Blogs » Makin Bacon

I never knew making bacon was such a process. And interesting, entertaining read with pictures to salivate to.

Link2008 Jun 17

LJWorld.com / New foundation for Django

This is great news for Django and all contributors involved. Django deserves its success. Here's to a great future of Django!

Link2008 May 30

django-ae-utils - Google Code

Utilities to replace Django's built-in auth and session functionality to use Google App Engine's and Big Table.

Photos2008 May 30

Huntin' for a Chicken

Dinner with friends.

Huntin' for a Chicken

Link2008 May 29

django-compress - Google Code

An app with management command to concatenate and compress Javascript and CSS files. It also handles cache busting by appending a date string. I've done this manually with Makefiles but this looks more integrated and easy.

Photos2008 May 23

Todai!

Sushi plate at Todai in Portland

Todai!

Photos2008 May 15

Daniella with pony tail

My beautiful daughter sporting a pony tail, grinning, and playing with her belly button.

Daniella with pony tail

Link2008 May 14

Google Doctype - Google Code

For web developers, by web developers. The wiki has tons of articles on web security, DOM manipulation, CSS, and other various tips and tricks. Lots of great stuff from Mark Pilgrim.

Photos2008 May 09

Obama to speak at UofO May 9, 2008

I snapped a quick shot of the pre-setup since I happened to be on campus today.

Obama to speak at UofO May 9, 2008

Link2008 May 08

GitPython - Gitorious

Nice work by Michael Trier on GitPython, a python library for interfacing with Git.

Link2008 Apr 30

iBanjo » Blog Archive » Subversion’s Future?

Git and Mercurial threaten Subversion? It looks like Subversion will still focus on being a good centralized source control system.

Link2008 Apr 27

Queryset Refactor Branch

Malcolm's Queryset Refactor branch landed on Django's trunk tonight. To mark the occasion I'm bookmarking a link to the page that describes in detail the changes.

Link2008 Apr 27

Scatter pictures with Google Charts

A fun Python trick: you can use the Python Imaging Library to convert a picture into a URL which Google charts will render as the original picture.

Link2008 Apr 23

django-voting - Google Code

A voting add-on for Django that can apply voting (+1/-1) to any model, with templatetags and generic views.

Photos2008 Apr 10

Super Fly Monkeys

My office mates just love it when I slingshot my monkeys over their heads and they screach with glee. They never grow tired of it. They love me more each time I do it. It never gets old.

Super Fly Monkeys

Link2008 Apr 09

jQuery-database

The ability to get DOM elements from an HTML table via jQuery using SQL-like syntax. Very slick.

Link2008 Apr 08

The Thing About Git

Ryan Tomayko put up a great post on how git handles the "Tangled Working Copy Problem". It happens to me too, and I didn't know about the --patch option.

Link2008 Apr 06

Sharing git repositories via OS X's built-in web sharing

A nice tip that shows how to share a git repository directly from your Mac laptop. This would be great for local hack fests and taking full advantage of git's distributed nature.