Showing posts with label django. Show all posts
Showing posts with label django. Show all posts

Monday, December 17, 2007

Django Book 1.0 as an A4 PDF

I've been hanging out for this book for more than a year.

Having just done a formatting pass through it, I can confirm that it's truly a great piece of work. 

I ordered it over 12 months ago and can't wait to get the printed copy in my hands but in the mean time, I've grabbed it and done some basic formatting to turn it into a PDF with a useful table of contents which I present for your download entertainment here.

My reading of the licensing is that this is perfectly OK, and indeed others have done it, but they are in strange non-metric formats and none that I've seen have a useful (clickable) table of contents.

(If I have done the wrong thing, please let me know ASAP and I'll remove it).

I did the formatting rather manually by copying the web pages into Apple's Pages. Must say, Pages is a superb word processor these days and I have no desire to run anything else again.

Monday, December 10, 2007

A Chat with Ben and Pete - Episode 7

Project Blackbox, Songbird and more.

We chat about the world of XWindows on Leopard, Sun’s Project Blackbox, developments in the python based web framework, Django, more wake from sleep problems with the Mac, an iPhone MMS application, the Google charts API, and an amazing iTunes clone, Songbird.

Subscribe or just download.

Friday, October 27, 2006

django on windows mobile 5


Hey, I just got the web framework django running on a Windows Mobile 5 PDA. I'm running under python 2.5 from here.

There is a bit of messing about which I'll blog about later but mostly it's installing stuff and getting around the lack of the command line shell. The only other tip is to start the development server with --noreload.

As sqlite3 is available it should be possible to build a proper web app but I haven't tried that just yet.

Update: mentioned on the Django blog!

Wow, I am so proud to be mentioned on the django site, thanks very much.

Here's my startup script that lets you use the server over WiFi. To run it you open it in File Explorer:

import sys
import socket

sys.argv.append("runserver")
ipPort = "%s:%d" % (socket.gethostbyname(socket.gethostname()), 8000)

sys.argv.append(ipPort)
sys.argv.append("--noreload")

from django.core.management import execute_manager

import settings # Assumed to be in the same directory.
execute_manager(settings)

# so we can see any error
raw_input()

I installed Python on a compact flash card. Here's the layout from the "Program Files" directory down. I simply copied the django directory over from another machine.