Re: High Load

2006-12-08 Thread Cheng Zhang
running on Gentoo 2006.1, Postgres 8.1.5, Lighttpd w/ scgi. The speed to the site is visually slow. [1] http://www.linode.com/products/linodes.cfm -Cheng Zhang Gentoo/PostgreSQL/Lighttpd/Python/Django/jQuery Powered (Web) http://www.aragonconsultinggroup.com http://www.ifaxian.com 1st Django powered

Re: looking for Django Contractors

2006-11-01 Thread Cheng Zhang
ment manager located in San Francisco, California and engineering team in Beijing, China, we can discuss more. BR, -Cheng Zhang Gentoo/Python/Django Powered http://www.ifaxian.com 1st Django powered site in Chinese ;-) http://www.aiyo.cn Our 2nd Django powered site in Chinese --~--~-~--

Re: How to auto create a from Model just the Admin do?

2006-10-30 Thread Cheng Zhang
the default language of this m-list, please try not to have Chinese characters within your post, that might confuse other non-Chinese speaking participants. Thanks. -Cheng Zhang http://www.ifaxian.com 1st Django powered site in Chinese ;-) http://www.aiyo.cn Our 2nd Django po

Re: Django & Movable Python

2006-10-25 Thread Cheng Zhang
; also play with it. Hell, we can even make a small project "Django on a > stick" and spread that nice warm feeling called Django to the rest of > the world :) > > Ideas? Suggestions? Cool idea, +1! Please get something started soon. -Cheng Zhang http://www.ifaxian.com 1st Dj

Re: Dojo vs Mochikit for Django dev?

2006-10-17 Thread Cheng Zhang
tml [3] http://visualjquery.com/ -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 you are subscribed to the Google Groups "Django user

Re: Mac vs. PC for Django work.

2006-09-15 Thread Cheng Zhang
on infrastructure open-source software like GCC, the same set of app will run faster on the same set of hardware. -Cheng Zhang http://www.ifaxian.com 1st Django powered site in Chinese ;-) http://www.aiyo.cn Our 2nd Django powered site in Chinese On Sep 14, 2006, at 1:13 AM, Tyson Tate wrote

Re: Mac vs. PC for Django work.

2006-09-15 Thread Cheng Zhang
r experience, lighttpd + scgi is much better than that. Again, pick what is the most comfortable one is always our guideline. -Cheng Zhang http://www.ifaxian.com 1st Django powered site in Chinese ;-) http://www.aiyo.cn Our 2nd Django powered sit

Re: generic ModifiedPreorderTreeTraversal app

2006-07-26 Thread Cheng Zhang
Great. If you get time, I suggest you update the wiki page accordingly. - Cheng Zhang On Jul 27, 2006, at 12:05 PM, nkeric wrote: > hi all, > > Base upon Julio's mptt-0.9 which handles nested contents: > > http://code.djangoproject.com/wiki/ModifiedPreorderTreeTraversal >

Re: [Changeset] r3455 - django/trunk/docs

2006-07-26 Thread Cheng Zhang
Adrian Would you mind to point out which OSCON presentation it is? Just curious. Thanks. - Cheng Zhang On Jul 27, 2006, at 8:46 AM, [EMAIL PROTECTED] wrote: > > Author: adrian > Date: 2006-07-26 19:46:32 -0500 (Wed, 26 Jul 2006) > New Revision: 3455 > > Modified: >

Re: New - monkey

2006-07-23 Thread Cheng Zhang
Of 'coz you can download everything needed on your windows box, then transfer over. - Cheng On Jul 21, 2006, at 7:59 PM, Rajeshwar Singh Jenwar wrote: > Hi ALL, > I m new to Django. > My linux box does not have net connection. > Can someone suggest me how to intsall Django with MySQL on

Re: non mod-python deployment...any experiences? (dedicated server)

2006-05-02 Thread Cheng Zhang
Apache + mod_python IMHO. Hugo's Django scgi page (https://simon.bofh.ms/cgi-bin/trac-django- projects.cgi/wiki/DjangoScgi) helps a lot. We are not a high-traffic site yet, but so far, such setup has been very stable. - Cheng Zhang http://www.ifaxian.com --~--~-~--~~~---~--~---

Re: non mod-python deployment...any experiences? (dedicated server)

2006-05-02 Thread Cheng Zhang
That blog is in Russian. ;-) On May 2, 2006, at 9:49 PM, Dmitry Medvedev wrote: > about nginx ( http://nginx.org/ ) - this web server is similiar to > lighttpd and i think results won't really differ a lot. I took > django+nginx instructions from Igor Goryachev's blog ( > http://goryachev.org/

Re: ANN: magic-removal branch merged to trunk

2006-05-01 Thread Cheng Zhang
eports and other help in this > branch. Special thanks go to the magic-removal committers, Joseph > Kocherans, Russell Keith-Magee and Luke Plant. We are also busy in converting our code base for http:// www.ifaxian.com to use new API lately. :-) Cheers! -

[M-R] order by on custom SELECT column

2006-05-01 Thread Cheng Zhang
On the models of tutorial 1, I want to get a list of Poll, order by how many choices it has. class Poll(models.Model): question = models.CharField(maxlength=200) pub_date = models.DateTimeField('date published') class Choice(models.Model): poll = models.ForeignKey(Poll)

Re: [M-R] lookup like Article.objects.filter(id__in = []) will fail

2006-04-30 Thread Cheng Zhang
On Apr 30, 2006, at 1:31 PM, Ivan Sagalaev wrote: > > Cheng Zhang wrote: > >> I tried lookup like Article.objects.filter(id__in = []), which will >> have SQL statement whose where clause is something like 'WHERE >> ("poll_article"."id"

[M-R] lookup like Article.objects.filter(id__in = []) will fail

2006-04-29 Thread Cheng Zhang
Hi, folks I tried lookup like Article.objects.filter(id__in = []), which will have SQL statement whose where clause is something like 'WHERE ("poll_article"."id" IN ())'. Such SQL statement is ok with SQLite but invalid for PostgreSQL. I work around this problem with code like: if

Re: Django API doc

2006-03-23 Thread Cheng Zhang
Very useful. Thanks. On Mar 23, 2006, at 4:28 AM, Daniel Poelzleithner wrote: > > Hi, > > i created a css to build a django styled API doc with epydoc. > > http://djangoapi.quamquam.org/ Beta Version :) > > I hope we can integrate it as http://api.djangoproject.com someday. > > kindly regards >

Re: caching questions

2006-03-01 Thread Cheng Zhang
check it out, it might be useful for you, although I didn't have chance to use it yet. Cheers - Cheng Zhang --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, sen

Re: Class in views.py

2006-02-27 Thread Cheng Zhang
On Feb 28, 2006, at 6:11 AM, Sandro wrote: > > I opened up the django shell and wrote some code that I want to place > in my views.py > Included in this code is a very simple class. I get errors if I > try to > run the code, are you not supposed to put classes in views.py? Nope AFAIK. Why

Re: recursive template calls

2006-02-07 Thread Cheng Zhang
Please search the previous email archive for discussion on such topic like "tree view". In fact, there is a wiki page for an implementation as well. On Feb 8, 2006, at 11:31 AM, Shannon -jj Behrens wrote: Hi, I'm trying to build ye ol' bulletin board application to try out Django. I'm

Re: Django and MS SQL

2006-01-21 Thread Cheng Zhang
Ok, the patch is away [http://code.djangoproject.com/ticket/1258]. :-) - Cheng Zhang

Re: Django and MS SQL

2006-01-20 Thread Cheng Zhang
On Jan 13, 2006, at 12:40 AM, Jeremy Dunck wrote: On 1/12/06, Rich Bakos <[EMAIL PROTECTED]> wrote: The pymssql driver only supports DB-LIB, which is way outdated and you wont have access to functionality added to MSSQL after version 6.5. This is not the best option IMHO. Adapter class

Re: Django and MS SQL

2006-01-20 Thread Cheng Zhang
Actually that's incorrect. Pymssql is only a thin wrapper around FreeTDS library (http://www.freetds.org/). AFAIK, FreeTDS works with SQL-Server 2000 pretty well. - Cheng On Jan 13, 2006, at 12:15 AM, Rich Bakos wrote: Jeroen Ruigrok van der Werven wrote: Hi Jeroen, Can a bunch of us

Re: multiple levels of join

2006-01-12 Thread Cheng Zhang
On Jan 12, 2006, at 5:38 AM, Adrian Holovaty wrote: On 1/11/06, Cheng Zhang <[EMAIL PROTECTED]> wrote: class Entry(meta.Model): submission_user = meta.ForeignKey(users.User) class Friend(meta.Model): myself = meta.ForeignKey(users.User, related_name="myself&quo

multiple levels of join

2006-01-11 Thread Cheng Zhang
I'd like to ask a question on multiple levels of join. My models are: class Entry(meta.Model): submission_user = meta.ForeignKey(users.User) class Friend(meta.Model): myself = meta.ForeignKey(users.User, related_name="myself", verbose_name="myself") friend =

Re: Django and MS SQL

2006-01-10 Thread Cheng Zhang
On Jan 10, 2006, at 10:21 PM, Adrian Holovaty wrote: On 1/9/06, Rich Bakos <[EMAIL PROTECTED]> wrote: I am experimenting with Django and MS SQL and it appears that Django is passing parameters to MS SQL in an incorrect format. The params are being passed in as a format string style (%s),

Re: best practices for translating content

2006-01-10 Thread Cheng Zhang
We discussed a bit about this topic in our project as well. Surely that's one way to do it, or maybe the only practical way we could come up with. But the problem is once you support more than 2 languages, keeping schema in sync will become a headache and definitely not DRY. - Cheng

Re: models can't use globals

2006-01-10 Thread Cheng Zhang
e moved to the top of the file from django.models import get_module mod = get_module('portal', 'friends') try: f = mod.get_object(myself__id__exact=friend.get_friend().id, friend__id__exact=friend.get_myself().id) except (KeyError, mod.FriendDoesNotExist): return False

Re: Additional User Data?

2006-01-03 Thread Cheng Zhang
I had the similar (or the same) error with my customer User_Profile model, when I specify nothing for admin, like admin = meta.Admin( ) If I specify something like 'list_display', the error is gone. admin = meta.Admin(

Re: Modeling a category entity which has parent-child structure

2005-12-13 Thread Cheng Zhang
On Dec 13, 2005, at 10:53 PM, Alex Bondarenko wrote: On 12/13/05, Cheng Zhang <[EMAIL PROTECTED]> wrote: I am trying to model a category entity which has parent-child structure. My model is: ... If parent is as same as child, this is considered as top-level Maybe just use "par

Re: [NOOB] ImportError: No module named django.core

2005-12-13 Thread Cheng Zhang
On Dec 13, 2005, at 9:43 PM, patrick kranzlmüller wrote: i just wanted to create a new app using django-admin.py startapp manage and i get the error ImportError: No module named django.core by the way, i already created an app last week, which worked fine. patrick This is due to old

Re: Which user posted the blog entry.

2005-12-12 Thread Cheng Zhang
On Dec 12, 2005, at 10:11 PM, [EMAIL PROTECTED] wrote: I was digging around the source for djangoproject.com and noticed that in the blog model, it looks like the user has fills in the "author" as a text field. Is there a better way for the blog to know which user posted that entry? Can

Re: replaces_module

2005-11-29 Thread Cheng Zhang
On Nov 29, 2005, at 10:26 PM, Adrian Holovaty wrote: class META: db_table = 'anastas_users' replaces_module = 'auth.users' admin = meta.Admin() # field names to remove from parent model remove_fields = ['password', 'is_staff', 'is_superuser'] Would you

Re: Django job in Dallas, Texas

2005-11-22 Thread Cheng Zhang
Looks like Django is starting to occupy the fields of news organization, beyond the stronghold of World Online. :-) Hopefully we will see such signs all over the world in near future, indicating the rapid occupation/adaptation of Django, at least as a competent counterpart of Rails. -

Re: How do I specify default value for a form field while using manipulator

2005-11-22 Thread Cheng Zhang
Thanks. Guess I should get the habit of searching wiki, esp. the cookbook. On Nov 22, 2005, at 9:21 PM, Grigory Fateyev wrote: http://code.djangoproject.com/wiki/CookBookManipulators there are two ways to do this stuff.

OODB with Django? Was Re: ZODB Anyone ?

2005-11-20 Thread Cheng Zhang
Informative pointer! I read the introduction of Moellus. Seems to me that it offers a even quicker way of rapid prototyping. When we frequently change the model during cycles of rapid prototyping, there is no need to manually alter the tables in RDB to make it consistent with the model

Re: ZODB Anyone ?

2005-11-20 Thread Cheng Zhang
I am curious to learn more about why "object DBs are not good fit for the MVC-like separation". Previously I had very basic exposure to ZODB, along with the concept of object database, when I played with Zope a bit years ago. Thanks. - Cheng On Nov 20, 2005, at 1:12 PM, Tom Tobin wrote: