Using a block more than once.

2007-04-19 Thread John Morton
I have some templates I'm using to produce static content, and in the base template, there's a block called 'title' used for the page title. I also want to use the same text content for the page title displayed in the body, and in a few other places, however this doesn't appear to be possible.

Re: Generating Javascript w Django

2007-01-11 Thread John Morton
On Friday 12 January 2007 16:04, cwurld wrote: > Hi, > > Does this make sense? I wanted some code to cycle thru some banner ads. > I could have done it with dojo doing a callback to my view, have my > view send the image path and the corresponding url, but that seemed > like a lot of

Re: mysql MyISAM save woe

2006-12-11 Thread John Morton
On Tuesday 12 December 2006 17:26, Adrian Holovaty wrote: > On 12/11/06, John Morton <[EMAIL PROTECTED]> wrote: > > The database introspection was correctly detecting which field to set as > > the primary key, but failed to detect that that column was > > auto

mysql MyISAM save woe

2006-12-11 Thread John Morton
I'm working with an introspected model against tables in a mysql backed with the MyISAM engine, and I'm having problems when creating new objects. Basically, I instantiate a new instance of the model, save the new object with the save method, then test the primary key attribute. Except that

TextField and mysql text columns

2006-12-11 Thread John Morton
I've got a model built out of a database introspection on a mysql MyISAM table which has a 'text' column which maps to a TextField. The problem is that this field ends up being an array object of characters, rather than just a string, as I expected. Is this behaviour consistant for all

Re: Python 2.5 anyone

2006-09-21 Thread John Morton
On Thursday 21 September 2006 05:44, John DeRosa wrote: > Oliver Andrich wrote: > > Hi, > > > > I am running Django 0.95 . And so far I can't see any problems. > > How'd you do it? > > I'm on Windows XP. I installed Python 2.5 from python.org without a > problem. > > But then I found

Re: Python 2.5 anyone

2006-09-20 Thread John Morton
On Wed, 20 Sep 2006 07:53, James Bennett wrote: > On 9/19/06, Ramdas S <[EMAIL PROTECTED]> wrote: > > Is anyone running Django dev version on Python 2.5? Will it work or are > > there any issues? > > Python 2.5 doesn't break or remove anything, it just adds some new > features. So it should work

Re: Weird slowdown with dev server behind nat

2006-08-01 Thread John Morton
On Monday 31 July 2006 22:04, Akatemik wrote: > I'm running the basic django server and everything works fine from lan. > But from outside every request has a three second overhead, even if > it's just a 304. This means that a small html-page with three JS-files > and a stylesheet takes 15