gt7658b wrote:
> 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
> 
> MIDDLEWARE_CLASSES = (
>     'django.contrib.sessions.middleware.SessionMiddleware',
>     'django.middleware.doc.XViewMiddleware',
>     'django.contrib.auth.middleware.AuthenticationMiddleware',
>     'django.middleware.cache.CacheMiddleware',
>     'django.middleware.common.CommonMiddleware',
>     'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
> )
> 
> However, I got 500 error. If I switch to CACHE_BACKEND = 'dummy:///',
> our web site worked just fine.

CacheMiddle ware should come before SessionMiddleware 
http://www.djangoproject.com/documentation/cache/#order-of-middleware-classes

Is the 500 from Django builtin server or from some other server?

Do you have debugging and what not turned on? you should be getting more 
info(traceback) than just a 500.

Have you read and understood the requirements for using memcached with 
Django http://www.djangoproject.com/documentation/cache/#memcached

Have you tried using python memcached libs by hand in Python shell or 
writing little test scripts not using Django?

You have provided too little information for anyone to tell you what is 
wrong.  But with the above information and a little investigation you 
should be able to figure it out on your own :)

-- 
Norman J. Harman Jr.
Senior Web Specialist, Austin American-Statesman
___________________________________________________________________________
You've got fun!  Check out Austin360.com for all the entertainment
info you need to live it up in the big city!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to