This post originated from an RSS feed registered with Python Buzz
by Michael Josephson.
Original Post: Getting the Subway Noteboard example up and running
Feed Title: SDJournal
Feed URL: http://www.sdjournal.com/archives/categories/languages/python/rss.xml
Feed Description: Posts from the Python category on SDJournal
After taking a first look at Subway a few weeks ago I've been doing a bit more work with it today in terms of getting the NoteBoard example app up and running.
I already had some of the dependencies installed (Python 2.4, Cheetah 0.9.17, MySQL, mysqldb) so I needed:
These all install using the familar python setup.py install approach. After that the example can be started up by going into the examples/noteboard directory and running python scripts/start_server.py.
The one thing that did catch me out at first is that some of the .html templates are saved with CRLF line endings and these needed to be converted before things would work correctly under Linux. (this is mentioned in this posting to subway-devel.) The symptoms for this were receiving a from site import site ImportError: cannot import name site when trying to request the root page for the app.