Re: Django Deployment Headache (Apache Permissions?)

2007-06-13 Thread John Morton
On Thursday 07 June 2007 08:58, [EMAIL PROTECTED] wrote: > I'm trying to push a beta build of an App I wrote to my Apache server > but, I'm running into some problems (I'm pretty sure it's permission > related) > > Here's the details. [snip] > /home/thebest/TheBest/alpha1/TheBest is the root

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: 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 j

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 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 TextFie

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 th

Re: mysql MyISAM save woe

2006-12-11 Thread John Morton
On Tuesday 12 December 2006 03:10, John Morton wrote: > 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 obj

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

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 activity

Accessing several databases at once

2006-07-26 Thread John Morton
I have an app built who's data (shared lookup tables) is stored in it's own database. I want to pull those models into another application to map various codes in the second application's data to sensible user output, but I can't see a straight forward way of advising a particular imported mode

Re: Accessing several databases at once

2006-07-27 Thread John Morton
On Thu, 27 Jul 2006 18:41, James Bennett wrote: > On 7/27/06, John Morton <[EMAIL PROTECTED]> wrote: > > I have an app built who's data (shared lookup tables) is stored in it's > > own database. I want to pull those models into another application to map

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 sec