Re: memcached

2008-07-09 Thread gt7658b
The previous information was not accurate. Actually it works fine with firefox, but cause apache 500 error on IE. On Jul 9, 9:28 pm, gt7658b <[EMAIL PROTECTED]> wrote: > Thanks for the help, I was able to make it work. It was due to the > fact that memcache.py was not unde

Re: memcached

2008-07-09 Thread gt7658b
', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.middleware.cache.CacheMiddleware', 'django.middleware.common.CommonMiddleware', 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware', ) On Jul 9, 12:19 pm, "Norman Harman" <[EMAIL PROTECTED]> wrote: > gt7658b wrote: > &

memcached

2008-07-08 Thread gt7658b
Hello, I tried to use memcached as follow. BTW, memcached is running as seen from top command on server. CACHE_BACKEND = 'memcached://127.0.0.1:11211/' # CACHE_BACKEND = 'dummy:///' CACHE_MIDDLEWARE_SECONDS = 60*30 CACHE_MIDDLEWARE_KEY_PREFIX ='' CACHE_MIDDLEWARE_ANONYMOUS_ONLY = True

memcached

2008-07-08 Thread gt7658b
Hello, I tried to use memcached as follow. BTW, memcached is running as seen from top command on server. CACHE_BACKEND = 'memcached://127.0.0.1:11211/' # CACHE_BACKEND = 'dummy:///' CACHE_MIDDLEWARE_SECONDS = 60*30 CACHE_MIDDLEWARE_KEY_PREFIX ='' CACHE_MIDDLEWARE_ANONYMOUS_ONLY = True

Re: two questions about data model

2007-09-15 Thread gt7658b
Thank you, guys. for the charfield question, what I am trying to modify is the backend. So I need to change django.contrib.admin.views.main.add_stage? and also change_stage function? I don't know how to change that function. Is there a way to do it during model definition? Thanks, Harry On

Re: multi level category table with parent_id field

2007-08-15 Thread gt7658b
Thanks, it worked. On Aug 13, 1:31 am, Nicola Larosa <[EMAIL PROTECTED]> wrote: > Hai Dong wrote: > > I was wondering how to use django to achieve the following application. > > Suppose my articles are organized in categories, subcategories, and > > subsubcategories. Database wise it will be

Re: a question about site framework

2007-08-01 Thread gt7658b
Kai: I was worrying about how to use the django database api to do site related queries. I mean how do I simply retrieve articles of a site without having to use the custom query. Harry On Aug 1, 9:36 pm, "Kai Kuehne" <[EMAIL PROTECTED]> wrote: > Hi Harry, > > O

Re: a question about site framework

2007-08-01 Thread gt7658b
Kai: Thanks for the suggestions. In this case, my Article will have relationship with category, not directly with site. Will I still be able to take advantage of the functions of site framework? Harry On Jul 31, 9:45 pm, "Kai Kuehne" <[EMAIL PROTECTED]> wrote: > ManyToManyField maybe is way