August 31, 2009
Speed is pretty important, especially with searching. Fortunately it’s a cinch to use ultra fine grained caching in Rails (objects, search results, json data etc), as long as you’ve have installed the Memcache server, set it up, and started it. In your environments.rb:
Shake
require “memcache”
CACHE = MemCache.new(’127.0.0.1′)
In your application_controlller.rb:
private
def cache(key)
begin
[...]
Read the full article →
June 1, 2009
This procedure will loosely follow the directions in the following locations:
http://www.djangobook.com/en/2.0/chapter02/
http://geodjango.org/docs/install.html#mac-os-x
http://code.google.com/p/geodjango-basic-apps/wiki/GeographicAdminQuickStart
I’ll assume you are using the terminal. You are also using OSX 10.5.6 (or later)
1) Install Django
Make a temporary directory to house the install files and enter that directory
mkdir django_install && cd django_install
Download the latest stable version of Django.
wget http://media.djangoproject.com/releases/1.1/Django-1.1-beta-1.tar.gz
Untar it into a temporary directory [...]
Read the full article →