In Django 1.3, they changed the way you set up cache in settings.py.
Now the Django doc recommends doing it like this:
Any good suggestions on converting the old way to not be depreciated in the future? Thank you! Edit: After a few brave attempts from @cmdkeen and myself, it seems like the only option is to set up a new app in the panel and use the directions in http://community.webfaction.com/questions/784/django-memcached-stats instead of trying to get webfaction's set up to work. asked 06 Apr '11, 07:17 marty3d |
Try this:
Hope that helps! answered 06 Apr '11, 08:54 seanf I am sorry, but that didn't work. The result was InvalidCacheBackendError: Backend URI must start with scheme://
(06 Apr '11, 11:16)
marty3d
|
It seems to work for me with the following location:
So all you were missing was the scheme:// definition, was a pure guess on my part that unix was the scheme rather than memcached :) Edit to add - on further investigation it isn't actually working for me, just not throwing an exception... I was however trying with redis rather than memcached (some stackoverflow answer said they were API compatible) answered 10 Apr '11, 17:14 cmdkeen Thanks for trying! I didn't have enough points to "like" your post, so I'll mention it here instead.
(12 Apr '11, 01:09)
marty3d
|