Re: Dynamic Subdomain Generation for Users

2008-03-31 Thread Graham Dumpleton
On Apr 1, 1:21 pm, [EMAIL PROTECTED] wrote: > Hey, > > I am currently looking at installing multiple instances of Django on a server > to use Django as a teaching and learning tool. > > What is the best way to go about this? > > I want to minimise the amount of storage needed and optimize the p

Re: Manipulating request.FILES

2008-03-31 Thread Cephire
Dimitri: I assume that you want to modify the name of the file that is submitted. It can be done in _save_FIELD_file of the model. Here is a snippet that i use to change the name of the uploaded avatar icon for the user. def _save_FIELD_file(self, field, filename, raw_contents, save=True)

Re: Dynamic Subdomain Generation for Users

2008-03-31 Thread Sarah . Vardy
Hi Graham, Thanks so much for all that information, it is greatly appreciated. Kind regards, Sarah vardy - Original Message - From: Graham Dumpleton <[EMAIL PROTECTED]> Date: Tuesday, April 1, 2008 1:54 pm Subject: Re: Dynamic Subdomain Generation for Users To: Django users > > > >

Basic Configuration Issue?

2008-03-31 Thread Michael Wieher
Can someone glance at this and tell me what is wrong? Request Method: GET Request URL: http://myserver.mydomain.net/datatab/ Using the URLconf defined in web.urls, Django tried these URL patterns, in this order: 1. ^/datatab/$ 2. ^/datatab/login/$ 3. ^/datatab/load-dataset/$ 4. ^/da

Re: Basic Configuration Issue?

2008-03-31 Thread Malcolm Tredinnick
On Mon, 2008-03-31 at 23:19 -0500, Michael Wieher wrote: > Can someone glance at this and tell me what is wrong? > > Request Method: > GET >Request URL: > http://myserver.mydomain.net/datatab/ > Using the URLconf defined in web.urls, Django tried these URL > patterns, in th

Re: Basic Configuration Issue?

2008-03-31 Thread Cephire
Michael: I'm no good at regex to explain why it doesn't work. But chapter 3 of Django book (pg 16 of pdf format) says the below: "... You should exclude the expected slash at the beginning of the '^time/ $' expression in order to match /time/. Django automatically puts a slash before every expres

Re: "clever" fields

2008-03-31 Thread martyn
Hi, Do you know the class Admin, a subclass of your model ? http://www.djangobook.com/en/1.0/appendixB/#cn311 Maybe it could help you. On 31 mar, 13:46, Grupo Django <[EMAIL PROTECTED]> wrote: > Hi! > I'm trying to create a generic form template for a custom admin zone. > I'm doing it this >

Re: IntegrityError: duplicate key violates unique constraint

2008-03-31 Thread makebelieve
The problem there was that much of the data I was importing came from the site's old MySQL database from before I started using PostGIS and GeoDjango. Does anyone know if there's a way to tell Postgresql to automatically detect what's in the table and resequence? On Mar 28, 1:17 pm, "Brian Armstr

<    1   2