Re: Pretty error pages for Django

2005-11-13 Thread Cheng Zhang
It's very informative and helpful , esp. for newbie to Django, it's also looking good. How may I get to try it in my own learning projects?

Fwd: OODB with Django? Was Re: ZODB Anyone ?

2005-11-20 Thread Cheng Zhang
eng Begin forwarded message: From: Cheng Zhang Date: November 20, 2005 8:42:54 PM CST To: django-users@googlegroups.com Subject: OODB with Django? Was Re: ZODB Anyone ? Informative pointer! I read the introduction of Moellus. Seems to me that it offers a even quicker way of rapid prototypin

Re: Ditch pluralisation entirely

2005-11-23 Thread Cheng Zhang
Yes, to have S or not have bite me couple times during my short period of learning Django. It looks cool but I agree that practically it helps almost nothing. So here is my +1. On Nov 23, 2005, at 8:03 PM, Simon Willison wrote: Here's an easy lesson we can learn from Rails: pluralisation s

Re: Cache and GET parameters

2005-12-06 Thread Cheng Zhang
On Dec 6, 2005, at 2:35 PM, Jacob Kaplan-Moss wrote: On Dec 6, 2005, at 12:28 AM, Adrian Holovaty wrote: Finally, along those lines, we could introduce a vary_on_get decorator, which, used with the NO_GET_PARAMS setting, would be an opt-in signifying a view *does* rely on query string. This

Referential Integrity Enforcement

2005-12-13 Thread Cheng Zhang
When I look closer to the SQL statement generated by django-admin.py for MySQL, I realize that it doesn't use 'FOREIGN KEY' clause to enforce referential integrity. For example: CREATE TABLE `polls_categorys` ( `id` mediumint(9) unsigned auto_increment NOT NULL PRIMARY KEY, `parent_i

Bug with django.core.formfields.CheckboxField.html2python()?

2006-01-08 Thread Cheng Zhang
= {% if form.has_errors %} {{ errors }} {% endif %} {% trans "edit your profile" %} {% trans "Email" %}: {{ form.email }} {% if form.email.errors %}*** {{ form.email.errors|join:", " }} {% endif %} {% trans "Firstname" %}: {{ form.first_name }} {% if form.first_name.errors %}*** {{ form.first_name.errors| join:", " }}{% endif %} {% trans "Lastname" %}: {{ form.last_name }} {% if form.last_name.errors %}*** {{ form.last_name.errors| join:", " }}{% endif %} == - Cheng Zhang

Re: Bug with django.core.formfields.CheckboxField.html2python()?

2006-01-08 Thread Cheng Zhang
I don't think this gonna work. I test the idea under Python shell: >>> from django.models.auth import users >>> u=users.get_object(pk=1) >>> m=users.ChangeManipulator(1) >>> new_data=m.flatten_data() >>> new_data {'username': 'czhang', 'first_name': 'Zhang', 'last_name': 'Cheng', 'last_login_t

Re: Bug with django.core.formfields.CheckboxField.html2python()?

2006-01-08 Thread Cheng Zhang
ok, here is result under Python shell: >>> from django.models.auth import users >>> u=users.get_object(pk=1) >>> m=users.ChangeManipulator(1) >>> new_data=m.flatten_data() >>> from django.utils.datastructures import MultiValueDict >>> mvd = MultiValueDict() >>> mvd.update(new_data) >>> mvd 'last

Re: ANN: Small security hole in compile-messages.py fixed

2006-08-16 Thread Cheng Zhang
certain that such security advisory will greatly enhance Django's image. Thanks to the excellent work of Adrian and the whole Django team! -Cheng Zhang http://www.ifaxian.com 1st Django powered site in Chinese ;-) --~--~-~--~~~---~--~~ You received this me

Re: multiple authentication and session keys

2006-08-30 Thread Cheng Zhang
ssor lazy, so that it would only call get_and_delete_messages() > if that variable were accessed in the template... Thoughts? +1. In addition, we can save a few SQL queries every request. -Cheng Zhang http://www.ifaxian.com 1st Django powered site in Chinese ;-) --~--~-~--~~---

Re: Serious problems with the way Django handles file uploads

2006-09-15 Thread Cheng Zhang
the m-list. Just to describe the behavior, even in great details, seems still won't cut it. Just my 2c. ;-) -Cheng Zhang http://www.ifaxian.com 1st Django powered site in Chinese ;-) http://www.aiyo.cn Our 2nd Django powered site in Chinese --~--~-~--~~~---~--~~ Y

Re: Local unicode-related fixes

2006-09-15 Thread Cheng Zhang
ol. It's really important to non-English speaking culture like us. -Cheng Zhang http://www.ifaxian.com 1st Django powered site in Chinese ;-) http://www.aiyo.cn Our 2nd Django powered site in Chinese --~--~-~--~~~---~--~~ You received this message because

Re: feature request: Bonjour support

2006-10-17 Thread Cheng Zhang
just the mac. > > You can see it in action here: > http://www.turbogears.org/svn/turbogears/trunk/turbogears/startup.py > > Look for 'def start_bonjour():" That's one neat idea we could learn from TG. With the TG's code as an example, it shouldn&#

Re: psyucopg2 status

2006-11-07 Thread Cheng Zhang
For now, I'd just suggest using the "postgresql_psycopg2" backend. > At some > point, we should probably rename that one "postgresql" and rename > the old one > "postgresql_psycopg1" just in case people still need it. Our sites have been using psycopg2 f

Re: Django Development Team Wanted

2007-01-17 Thread Cheng Zhang
can discuss more. BR, Cheng Zhang Gentoo/PostgreSQL/Lighttpd/Python/Django/jQuery Powered (Web) http://www.aragonconsultinggroup.com http://www.ifaxian.com 1st Django powered site in Chinese ;-) http://www.aiyo.cn Our 2nd Django powered site in Chinese 2007-1-11 3:02 eas We are