Re: what is django.db.models.Q for?

2012-01-10 Thread Eugene Wee
Hi, On Wed, Jan 11, 2012 at 10:27 AM, Yekui Wen wrote: > can you guys tell me what is the Q method for ? Yes, though they are Q objects, not methods. Refer to: https://docs.djangoproject.com/en/1.3/topics/db/queries/#complex-lookups-with-q-objects Regards, Eugene -- You received this message

Two Column Aggregate

2012-01-10 Thread Eugene Wee
7;items__quantity', ))['total_costs'] However, this proposed aggregate has two columns. Is it feasible to implement this, and if so, how should I go about it? Thank you, Eugene Wee -- You received this message because you are subscribed to the Google Groups "Django users&qu

Re: Django, Rails but a cost to pay ?

2010-08-03 Thread Eugene Wee
Hi, On Wed, Aug 4, 2010 at 3:21 AM, didier rano wrote: > But, not all good developers > are able to use efficiently dynamic languages. I suspect that there will always be a programming language for which there exists a good developer who is currently unable to use it efficiently. Programming lan

Re: Passing message to 404

2010-03-03 Thread Eugene Wee
ot; (this is for looking at user profiles). You can create a 404 view: http://docs.djangoproject.com/en/1.1/topics/http/views/#the-404-page-not-found-view Regards, Eugene Wee -- You received this message because you are subscribed to the Google Groups "Django users" group. To p

Re: anybody tried web2py and gone back to Django?

2010-02-19 Thread Eugene Wee
ributed "under any license you like including closed source". Regards, Eugene Wee -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from th

Re: Static files in development and deployment

2010-02-01 Thread Eugene Wee
the > same location relative to your images on both servers the path change > shouldn't be a problem for that case. > > In [/static]/css/screen.css: > > url('../images/image.png') *Face palm* Okay, this sounds like it will work. Thanks, Eugene Wee -- You received t

Static files in development and deployment

2010-02-01 Thread Eugene Wee
pt that does a regex search and replace just before deployment, but if there is a better way, I would be very interested to know. Thank you, Eugene Wee -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dja

Re: Empty categories

2010-01-28 Thread Eugene Wee
; Can someone please point me in the right direction? Perhaps you could try: def products(request): category_list = Category.objects.filter(product__isnull=False) # ... Regards, Eugene Wee -- You received this message because you are subscribed to the Google Groups "Django users"

Re: URL design - why the trailing slash?

2010-01-27 Thread Eugene Wee
ould not have made sense to make the APPEND_SLASH setting behave the way it does, i.e., a slash is not appended if the initial URL (without a trailing slash) can be found in the URLconf. Regards, Eugene Wee -- You received this message because you are subscribed to the Google Groups "Django users&

Re: Populating a model field with an implicit default values with request data from the admin interface

2010-01-26 Thread Eugene Wee
s form (and so blank=True would not be required, if I remember correctly), though you can make them show up in the article listing in the admin. Regards, Eugene Wee -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: Populating a model field with an implicit default values with request data from the admin interface

2010-01-26 Thread Eugene Wee
odelAdmin derived class: http://docs.djangoproject.com/en/dev/ref/contrib/admin/#modeladmin-methods Regards, Eugene Wee -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com.

Allowing FileField to overwrite filenames

2010-01-17 Thread Eugene Wee
. Thanks, Eugene Wee -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more opti