Re: High Load

2006-12-08 Thread Cheng Zhang
go app is 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 Djang

Re: So I made a forum with Django

2006-11-03 Thread Cheng Zhang
quite powerful. Another happy Django story. :-) +1! Looking forward to. -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 --~--~-~--~~~---~--~~ You r

Re: looking for Django Contractors

2006-11-01 Thread Cheng Zhang
ou are interested in working with engagement 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 powe

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

2006-10-30 Thread Cheng Zhang
zsp007: Because English is 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:/

Re: Django & Movable Python

2006-10-25 Thread Cheng Zhang
ou can > 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.

Re: Dojo vs Mochikit for Django dev?

2006-10-17 Thread Cheng Zhang
ine.html [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

Re: Mac vs. PC for Django work.

2006-09-15 Thread Cheng Zhang
h the improvement 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

Re: Mac vs. PC for Django work.

2006-09-15 Thread Cheng Zhang
ent methods. In our 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 2n

Re: Mac vs. PC for Django work.

2006-09-15 Thread Cheng Zhang
packages/py24-fat/index.html immediately. With the combined help from that link, easy_install and darwinports (now rename as macports)/fink, the Mac ride will be flawless. -Cheng Zhang http://www.ifaxian.com 1st Django powered site in Chinese ;-

Re: favicon.ico displaying in page

2006-08-18 Thread Cheng Zhang
> share > > thanks a lot > as i m doing an aggregator, i need to display these icons next to the > content > so i was asking if some1 has experience doing this > thanks > I found this article (http://www.kryogenix.org/days/2005/01/31/ favatarsUrlparse) might be

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 Linux

Re: Compilation of 30 Django tutorials

2006-07-18 Thread Cheng Zhang
Great collection. :-) Will it be more informational if there is one line of summary for each tutorial? - Cheng On Jul 18, 2006, at 3:34 AM, [EMAIL PROTECTED] wrote: > > Hi all, > > I put together a compilation of 30 Django tutorials. They're mostly > from the community page but I think it's n

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

2006-05-02 Thread Cheng Zhang
than 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
reports 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. :-) Chee

[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) cho

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 len(id_l

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: An expression tag

2006-03-08 Thread Cheng Zhang
On Mar 4, 2006, at 3:12 PM, limodou wrote: > > I'v written a expression tag, it can be used to calculate python > expression and save the result to a template variable. I think it > maybe some useful for someone. Indeed. I just found a place to use it in our app. :-) Thanks. - Cheng --~--~--

Re: caching questions

2006-03-01 Thread Cheng Zhang
-headers). If you didn't 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&qu

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 do

Re: Problem and fix with ado_mssql

2006-02-27 Thread Cheng Zhang
On Feb 28, 2006, at 5:48 AM, kent wrote: > PS I tried submitting this as a patch in the tracker but I didn't see > any 'attach file' button... The 'attach file' button will appear after you create the ticket. :-) - Cheng --~--~-~--~~~---~--~~ You received this

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 ha

Re: Django and MS SQL

2006-01-21 Thread Cheng Zhang
On Jan 21, 2006, at 7:12 AM, Jeremy Dunck wrote: On 1/20/06, Cheng Zhang <[EMAIL PROTECTED]> wrote: Adapter class over adodbapi where supported, falling back to pymssql? I think they (ado_mssql and pymssql) are meant for different OS platforms, in that ado_mssql is for Django runn

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 o

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 ge

Re: Django and MS SQL

2006-01-20 Thread Cheng Zhang
nd my mind started to blur. I will try to finish up tomorrow, clean up, and submit patches. Please NOTE that this pymssql is different with the existing ado_mssql. It can run on *nix, 'coz I am hacking on my Mac. Cheers. - Cheng Zhang - 'basic' module: API test

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 = meta.ForeignKey(users.U

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. -

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. -

Re: models can't use globals

2006-01-10 Thread Cheng Zhang
ne can't be 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.Frien

Re: ANN: "Snakes and Rubies" (Django/Rails meetup) video/audio available

2006-01-05 Thread Cheng Zhang
Cool, feels like have been waiting for this video forever. ;-) Special cheers to Jacob's video editing efforts. I know how painful it could be. - Cheng Zhang On Jan 5, 2006, at 10:20 PM, Adrian Holovaty wrote: Last month, there was a Django/Rails meetup in Chicago, at which I

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( lis

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

Modeling a category entity which has parent-child structure

2005-12-13 Thread Cheng Zhang
I am trying to model a category entity which has parent-child structure. My model is: class Category(meta.Model): parent = meta.ForeignKey(Tag, related_name="parent_category") child = meta.ForeignKey(Tag, related_name="child_category") class META: admin

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 *.py

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 tha

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 p

Re: Standalone template language

2005-11-24 Thread Cheng Zhang
It's possible, based on my limited knowledge of Django. I think such usage is more like using a Python library. In your case, you need to set the environment variable DJANGO_SETTINGS_MODULE as shown in tutorial 1, e.g. export DJANGO_SETTINGS_MODULE=myproject.settings - Cheng On Nov 24, 2

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. - Che

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.

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

2005-11-22 Thread Cheng Zhang
How do I specify default value for a form field, which maps to a foreign key as Poll.submitted_user shown below, with manipulator, in particular AddManipulator? I couldn't find relevant information from the django-users archive, at least searching with keywords: manipulator, default didn'

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 over

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: