Re: Executing ssh scripts with django

2010-11-01 Thread Andrej
> I'm developing an ISP control panel for my organization. a bit off topic on Django and ISP. Look at the NOC Project http://www.nocproject.org/ > NOC is an Operation Support System (OSS) for the Telco, > Service provider and Enterprise Network Operation Centers (NOC). > Written in Python languag

Re: Full Text Search

2010-10-01 Thread Andrej
Check this out: http://www.julienphalip.com/blog/2008/08/16/adding-search-django-site-snap/ On Oct 1, 6:52 am, Alessandro Ronchi wrote: > On Fri, Oct 1, 2010 at 3:35 AM, Steve Holden wrote: > > On 9/30/2010 8:26 PM, Nick Arnett wrote: > > > Brain is mush, though. > > Thank you. I'm waiting with

Re: How does the default option for a field work in the model?

2010-02-28 Thread Andrej
I want to use the Admin module to pre-set default values when creating the form. For example, in the gender case, I want to have default "Unknown" option. Is this this not possible? On Feb 28, 6:00 pm, James Bennett wrote: > On Sun, Feb 28, 2010 at 4:42 PM, Andrej wrote: > >

Re: Serving https with runserver

2010-02-28 Thread Andrej
because you need to load apache ssl gear. Set up your normal virtual host and then use reverse proxy: ProxyPass / http://localhost:8000/ ProxyPassReverse / http://localhost:8000/ On Feb 28, 5:09 pm, cool-RR wrote: > Why doesn't runserver automatically serve in https as well as http? It

How does the default option for a field work in the model?

2010-02-28 Thread Andrej
>From the docs: GENDER_CHOICES = ( ('M', 'Male'), ('F', 'Female'), ) Shouldn't this work? It's a tuple. gender = models.CharField(_('Gender'), max_length=1, choices=GENDER_CHOICES, default=GENDER_CHOICES[2]) It doesn't. I smell black magic! Please help :) -- You received this message

Re: Conditonal validators for the model

2010-02-28 Thread Andrej
Thanks for the reply, that definitely works, and it's within the MVC paradigm. On Feb 28, 3:14 pm, sc...@thereceptor.net wrote: > > Greetings, > > > Django is awesome! I'm playing around and I was wondering if there is > > a way to specify conditional validators in the model. > > > Example: if fie

Conditonal validators for the model

2010-02-28 Thread Andrej
Greetings, Django is awesome! I'm playing around and I was wondering if there is a way to specify conditional validators in the model. Example: if field x is blank, field y is required. Thanks for your help! -- You received this message because you are subscribed to the Google Groups "Django

Re: making two-column table from one-column data

2007-12-02 Thread andrej kesely
Thanks for your reply, I really like the general iterator approach. This recipe will definitely go to my personal "standard" library. A. On Dec 2, 11:09 pm, Tim Chase <[EMAIL PROTECTED]> wrote: > > If your data is in the 'data' context variable, then try this: > > > > > {% for d

making two-column table from one-column data

2007-12-02 Thread andrej kesely
don't want split the QuerySet in my views to something like this: [(A, B), (C, D)...] etc. Thanks, Andrej Kesely --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gr