Re: Best practice for shareable web application

2008-11-29 Thread Leon Yeh | New Avenue.net
found any thing that I would considered optimal solution. Somebody must have seen this problem before and could have solved it. I am going back to see if pinax project has something like this. Anyhow, back to my research. Leon Yeh Graham Dumpleton wrote: > > > On Nov 29, 2:34 pm, &

Best practice for shareable web application

2008-11-28 Thread Leon Yeh | New Avenue.net
. Thanks in advance, -- Leon Yeh Imagination Delivered. www.newavenue.net --~--~-~--~~~---~--~~ 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@googlegro

Re: Generating widget based on class type for a Custom Form

2008-10-08 Thread Leon Yeh
Hi Ronny, Thanks ... that is a great idea! It works like I wanted. Leon Yeh New Avenue Systems Inc. Ronny Haryanto wrote: > On Tue, Oct 7, 2008 at 7:31 PM, Leon Yeh | New Avenue.net > <[EMAIL PROTECTED]> wrote: > >> Hi Ronny, terima kasih... :-) >> >

Re: Generating widget based on class type for a Custom Form

2008-10-07 Thread Leon Yeh | New Avenue.net
Hi, I also need to switch the and tags, so attrs would not help. For example for select widget I need to generate and for other controls, I need to generate Thanks Leon Yeh Ulises wrote: >> and for other controls, I need to generate >> > > How about

Re: Generating widget based on class type for a Custom Form

2008-10-07 Thread Leon Yeh | New Avenue.net
Hi Ronny, terima kasih... :-) I am trying to generate different output for css styling purpose. For example for select widget I need to generate and for other controls, I need to generate I don't know how field.as_widget would help. Leon Yeh New Avenue Systems Inc. Office: (62

Generating widget based on class type for a Custom Form

2008-10-06 Thread Leon Yeh | New Avenue.net
}} {{ field }} {% else %} It is not select field {% endifequal %} {% endfor %} I am having hard time to do the ifequal statement. It does not get the correct comparison. It always return true. Any idea how to fix this ? Thanks in advance, Leon Yeh New Avenue Systems Inc

Multiple host for one single django project

2008-07-18 Thread Leon Yeh | New Avenue.net
different view. I tried to look into multihost middleware and site middleware, and I think those approach is a bit overkill for my problem. Is there anyway to have urlpattern to look into the host name portion of the url? I was hoping to do all of this into urls.py. Thanks in advance Leon Yeh

Display image in django admin

2008-06-19 Thread Leon Yeh | New Avenue.net
uot;"" % (self.photo) class Admin: list_display = ('title','content', 'thumbnail') Thanks, Leon Yeh New Avenue Systems Inc. --~--~-~--~~~---~--~~ You received this message because you are su