5 Blog Entries for 2008
I Can Haz Hardcore Forking Action
Recently myself and a few co-workers (@davemerwin, @bradpitcher, Percy and Nate) got together for what we called, "Django Night: 3 Hours 1 App", in which we attempted to build a website from start to finish in 3 hours using Django. We also decided to learn and use Git and GitHub as our decentralized source code management. This is more about the experiences learned from Git than the Django project.
What is Git
Git is a distributed revision control / software configuration management project created by Linus Torvalds, initially for the Linux kernel development. For more from Linus himself, this is an ...
Google Charts API adds maps
The Google Charts API is growing and just added maps. To play I mapped all the US states that I've either lived in, visited, or driven through. Here's my map:
One of our Django sites finally went public
I'm excited to finally be able to announce a Django project we've worked on at ORCAS that was recently released to the general public.
The website's official title is Brain Injury Partners: Navigating the School System and is designed to give parents of school-aged children with a brain injury the skills they need to become successful advocates. It was funded by the National Institute of Child Health and Human Development and made in collaboration with the Brain Injury Association of America.
This was our very first dip into Django that we started in August 2006. Since then ...
Command Line History
A meme is going around that shares stats of your command line history. So here's mine:
$ history | awk '{print $2}' | sort | uniq -c | sort -rn | head
135 git
88 cd
83 ls
42 ./manage.py
37 python
22 less
15 vim
13 cat
11 sudo
9 fg
Django and Relativity
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:
- Templates
- Media
Let's assume the following directory structure for a Django project:
.
|-- media
|-- myproject
|-- __init__.py
|-- manage.py
|-- settings.py
|-- templates
| |-- base.html
|-- urls ...