A GET request for the URL: https://raw.github.com/mysociety/commonlib/master/bin/get_pip.bash ... currently returns a 301 Moved Permanently with Location: https://raw.githubusercontent.com/mysociety/commonlib/master/bin/get_pip.bash However, curl won't follow redirects without -L, so zero bytes were being piped to bash, pip wasn't being upgraded and the latest setuptools wasn't being installed.
When we switched to using a local Overpass server for MapIt Global, the option to use a remote Overpass server instead was removed. This restores that option, controlled by settings in conf/general.yml (LOCAL_OVERPASS, OVERPASS_DB_DIRECTORY and OVERPASS_SERVER.) It's still useful to be able to use the remote server out-of-the-box for testing, and quickly grabbing the KML for and OSM way or relation. Thanks to Cesar Martinez Izquierdo (@dispiste) who made a pull request with similar functionality some time ago, but who closed it (unmerged) later. This commit introduces similar changes, but using urllib2 instead of relying on wget, and using the MapIt general.yml configuration file instead of a new configuration module.
It wouldn't work at all, because it wasn't using a virtualenv and e.g. on Ubuntu precise you'll only get Django 1.3 that way. Now, use the separate post deploy script that now exists, and run gunicorn using the virtualenv's python. Don't install compass, it isn't needed; update the example config files; add more output.
The /usr/share/pyshared/django/contrib/admin/media/ is the one that's actually contained in the python-django package - on some systems with that package installed (e.g. firefly), /var/lib/python-support/python2.5/django/contrib/admin/media doesn't exist. (The Debian packages generate the /var/lib/python-support structures for the Python versions that are installed.)
This removes the | alternations in favour of the version specifically available in Debian squeeze. (The | breaks the suggested install instruction using "xargs -a" in any case.) The libapache2-mod-wsgi package has also been removed, since this would cause Apache to be installed even if we're using nginx.