IOError: Client read error (Timeout?)

2006-07-02 Thread Qi Cheng
Hi, guys. This is a problem that troubled me for months, but maybe it is very easy to you. I guess it is an problem that has something relation with mod-python or cookie, but I am not sure. Since many corresponding softwares I use, between our production and develope server, are the same except L

Re: Avoiding restarts on the development server

2006-07-02 Thread Jay Parlar
On 7/2/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi > > I use the development server that comes with Django. I'm currently > trying out some changes to the contrib/admin application, and find > thatI have to restart the server every time I change one of the > templates. Is there some wa

Re: Broken File Uploads

2006-07-02 Thread Jay Parlar
On 7/2/06, Tyson Tate <[EMAIL PROTECTED]> wrote: > > Do I need to add a special line to my urls.py file? My settings are > as such: > > MEDIA_ROOT = '/Users/ttate/Desktop/fallingbullets/media/' > MEDIA_URL = 'http://localhost:8000/media/' > ADMIN_MEDIA_PREFIX = '/admin_media/' > Yeah, you would

Re: Django friendly hosting in Canada?

2006-07-02 Thread Jay Parlar
On 7/3/06, Iain Duncan <[EMAIL PROTECTED]> wrote: > > Anyone have good recomendations for a canadian hosting company that > makes setting up Django sites easy? Will pay higher prices for good > service and stability. > Well, I'm Canadian, but I'm currently using Dreamhost. With Jeff Croft's great

Re: Still stuck trying to set up testing

2006-07-02 Thread Neilen Marais
Hi On Thu, 08 Jun 2006 23:07:51 -0400, Todd O'Bryan wrote: > And then I need to be running under program control again to add all > my test data to the the db. > > Please tell me that I'm overthinking this and there's some easy way > out of this! The other posters in this thread do give n

Re: Django on Debian Sarge?

2006-07-02 Thread Iain Duncan
> which would indicate that Gentoo's stable mod_python still isn't new > enough, odd as that sounds. It's only one patchlevel higher than > Sarge's version. > > >>...My home dev box is >>gentoo, all I had to do was emerge mod_python and the mysqldb e-build ( >>can't remember name ), checkout

Re: SubClassing problem

2006-07-02 Thread Malcolm Tredinnick
On Sun, 2006-07-02 at 23:12 +0200, Laurent Rahuel wrote: > Hi, > > I got a serious problem with model inheritance in my Django model. Here's a > sample: > > from django.db import models > > class MPTTTree(models.Model): > created_at = models.DateTimeField(_('creation date'), auto_now_add=T

Re: Automatic redirecting after login

2006-07-02 Thread Todd O'Bryan
(who's working on the project with Nick) It turns out that this is easy if you use django.contrib.auth.views.login as your default login view and django.contrib.auth.forms.AuthenticationForm as the manipulator for the login form you create. But how many people actually do this? There's one

Re: Hola

2006-07-02 Thread Jeremy Dunck
On 7/2/06, mamcxyz <[EMAIL PROTECTED]> wrote: > Con respecto a django, no hay mucha informacion en español, asi que te > tocaria leer la documentacion (que es buena) en ingles. This is a shame, of course, but my Spanish is too bad to do much about it. :( --~--~-~--~~~---

Re: Automatic redirecting after login

2006-07-02 Thread Ian Holsman
try /accounts/login/?next=/foobar ? On 03/07/2006, at 5:03 AM, bsdlogical wrote: > > Luigi Pantano wrote: > >> try this >> >> from django.http import HttpResponseRedirect >> >> ... ... >> >> def login(request): >>''' some code to put here ''' >>return HttpResponseRedirect("index.htm") >

Re: Django on Debian Sarge?

2006-07-02 Thread Dustin Laurence
On Sun, Jul 02, 2006 at 09:09:59PM -0700, Iain Duncan wrote: > > I haven't installed on Sarge, but on Gentoo it's no problem because > installing the newest stable packages is the default ( sarge's are > tested much longer with much longer release cycle ). I normally would assume so, but here is

Re: Broken File Uploads

2006-07-02 Thread Tyson Tate
On Jul 2, 2006, at 1:54 PM, Tyson Tate wrote: ... > image = models.ImageField(upload_to="media/portfolio", > height_field='height', width_field='width', core=True) ... That line was my problem. upload_to is not relative to the root, but to the media/ directory. I set upload_to to "portfo

Re: Limiting Choices in AddManipulator

2006-07-02 Thread Jorge Gajon
Hi, Maybe you could try this: user_choices = [(u.id, u) for u in User.objects.filter(query)] form['field_name'].formfield.choices = user_choices choices expects a list of tuples in the form of (value, display), so that it generates a select field like this: display1 display2

SubClassing problem

2006-07-02 Thread Laurent Rahuel
Hi, I got a serious problem with model inheritance in my Django model. Here's a sample: from django.db import models class MPTTTree(models.Model): created_at = models.DateTimeField(_('creation date'), auto_now_add=True) updated_at = models.DateTimeField(_('last update date'), auto_now=

Re: Django on Debian Sarge?

2006-07-02 Thread Iain Duncan
> Hi, I was looking at trying Django for a project and noticed that in the > comments to the installation directions it was claimed that Debian > Sarge's mod_python isn't recent enough to run Django. That would be a > big complication. Is anyone running Django on Sarge, and can anyone > confirm

Django friendly hosting in Canada?

2006-07-02 Thread Iain Duncan
Anyone have good recomendations for a canadian hosting company that makes setting up Django sites easy? Will pay higher prices for good service and stability. Thanks Iain --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

Django on Debian Sarge?

2006-07-02 Thread Dustin Laurence
Hi, I was looking at trying Django for a project and noticed that in the comments to the installation directions it was claimed that Debian Sarge's mod_python isn't recent enough to run Django. That would be a big complication. Is anyone running Django on Sarge, and can anyone confirm that it doe

Broken File Uploads

2006-07-02 Thread Tyson Tate
I'm using the latest Django SVN on my MacOS X box with Python 2.4.3. Everything has worked so far, except for file uploads. I've got something like the following model: from django.db import models class PortfolioImage(models.Model): image = models.ImageField(upload_to="media/portfo

Removing a file from object

2006-07-02 Thread Rudolph
Hi, I've got a model with a FileField and blank=True. When I create an object by using the admin interface and fill in a file, everything is ok. When I edit the object again, there's no way to remove the file (without uploading a new file). Is this something yet to be done? Rudolph --~--~-

Re: Advanced Locale from URL middleware

2006-07-02 Thread jon1012
Hi Adrian, Here is my blog post about it (in french and english): http://www.jondesign.net/articles/2006/jul/02/langue-depuis-url-django-url-locale-middleware/ I'll put it on the wiki. Jon --~--~-~--~~~---~--~~ You received this message because you are subscri

Re: Automatic redirecting after login

2006-07-02 Thread bsdlogical
Luigi Pantano wrote: >try this > >from django.http import HttpResponseRedirect > >... ... > >def login(request): >''' some code to put here ''' >return HttpResponseRedirect("index.htm") > > > > I see what you're saying, but I was thinking something more on a selective basis. This would

Re: Automatic redirecting after login

2006-07-02 Thread bsdlogical
Luigi Pantano wrote: >try this > >from django.http import HttpResponseRedirect > >... ... > >def login(request): >''' some code to put here ''' >return HttpResponseRedirect("index.htm") > > > > I see what you're saying, but I was thinking something more on a selective basis. This would

Re: Hola

2006-07-02 Thread aaloy
No. Tienes que venir aprendido :) http://www.python.org Saludos, 2006/7/2, Joan <[EMAIL PROTECTED]>: > > Quisiera saber si en este grupo podemos aprender el lenguaje de > programación para crear software u otros programas. Saludos > >Joan Translation: He wants to know if in

Re: Hola

2006-07-02 Thread mamcxyz
No. Este grupo es especifico sobre django, una plataforma de desarrollo web basada en python, por lo tanto solo sirve para hacer aplicaciones/sitios Web. Sin embargo, si te interesa ese tipo de desarrollos, la curva de aprendizaje es baja. Pero debes tener fundamentos de programacion y de python.

Avoiding restarts on the development server

2006-07-02 Thread [EMAIL PROTECTED]
Hi I use the development server that comes with Django. I'm currently trying out some changes to the contrib/admin application, and find thatI have to restart the server every time I change one of the templates. Is there some way I can avoid this? --~--~-~--~~~---~--

Re: Automatic redirecting after login

2006-07-02 Thread Luigi Pantano
try this from django.http import HttpResponseRedirect ... ... def login(request): ''' some code to put here ''' return HttpResponseRedirect("index.htm") -- Luigi Pantano --- AICQ - Associazione Italiana Cultura

Automatic redirecting after login

2006-07-02 Thread bsdlogical
Is there a way to ask a page to redirect somewhere after a certain action is completed? Specifically, after a user has logged in? I have a sub-site running at /orgs/keyclub. When users click "Login" from the sub-site, they are directed to the main site's login page (to prevent code duplication -

Hola

2006-07-02 Thread Joan
Quisiera saber si en este grupo podemos aprender el lenguaje de programación para crear software u otros programas. Saludos Joan --~--~-~--~~~---~--~~ Ha recibido este mensaje porque está suscrito a Grupos de Google "Django users" grupo. Si q

classes in admin interface for inline objects?

2006-07-02 Thread basvroling
My models look like this: class Group(models.Model): def __str__(self): return self.name name = models.CharField(maxlength = 100) general_info = models.TextField() class Admin: pass: class Vacancies(models.Model):

Re: regex: how to do this in one line of code?

2006-07-02 Thread nkeric
James Bennett wrote: > The fact that you've got three different regular expressions with > three different substitutions to do means that this needs to be three > logical operations. However, you can make this slightly easier on > yourself by building a dictionary of the patterns and substitutions

Re: regex: how to do this in one line of code?

2006-07-02 Thread James Bennett
On 7/2/06, nkeric <[EMAIL PROTECTED]> wrote: > I'm quite a newbie to regex, could the above code be done in a single > line of regex replacing? The fact that you've got three different regular expressions with three different substitutions to do means that this needs to be three logical operation

regex: how to do this in one line of code?

2006-07-02 Thread nkeric
hi all, a small question, I'm trying to clean up a string, replacing multiple spaces with a single space, multiple "-"s "."s with single "-" & ".", my current code is: decoded_string = re.sub('[\s]+', ' ', decoded_string) decoded_string = re.sub('[-]+', '-', decoded_string) decoded_s

Re: UNIQUE Index in more then one columns.

2006-07-02 Thread Frankie Chow
Thank your for your answer. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMA