Did you end up solving this issue?
On Sunday, November 10, 2013 2:53:26 AM UTC+8, vittorio wrote:
>
> In my settings.py I have the following code:
> .........
> CACHES = {
> 'default': {
> 'BACKEND': 'johnny.backends.memcached.MemcachedCache',
> # 'BACKEND': 'johnny.backends.memcached.CacheClass',
> 'LOCATION': ['127.0.0.1:11212'],
> 'JOHNNY_CACHE': True,
> }
> }
>
> JOHNNY_MIDDLEWARE_KEY_PREFIX='vic_'
>
> MIDDLEWARE_CLASSES = (
> 'johnny.middleware.LocalStoreClearMiddleware',
> 'johnny.middleware.QueryCacheMiddleware',
> .........
>
> Which worked like a charm till django 1.5.5.
>
> Now, after installing the new django 1.6 when I launch 'python manage.py
> runserver' the following fatal error is signalled:
>
>
> File
> "/Library/Python/2.7/site-packages/django/contrib/staticfiles/management/commands/runserver.py",
>
> line 6, in <module>
> from django.contrib.staticfiles.handlers import StaticFilesHandler
> File
> "/Library/Python/2.7/site-packages/django/contrib/staticfiles/handlers.py",
> line 8, in <module>
> from django.contrib.staticfiles.views import serve
> File
> "/Library/Python/2.7/site-packages/django/contrib/staticfiles/views.py",
> line 15, in <module>
> from django.contrib.staticfiles import finders
> File
> "/Library/Python/2.7/site-packages/django/contrib/staticfiles/finders.py",
> line 12, in <module>
> from django.contrib.staticfiles.storage import AppStaticStorage
> File
> "/Library/Python/2.7/site-packages/django/contrib/staticfiles/storage.py",
> line 8, in <module>
> from django.core.cache import (get_cache, InvalidCacheBackendError,
> File "/Library/Python/2.7/site-packages/django/core/cache/__init__.py",
> line 138, in <module>
> cache = get_cache(DEFAULT_CACHE_ALIAS)
> File "/Library/Python/2.7/site-packages/django/core/cache/__init__.py",
> line 130, in get_cache
> "Could not find backend '%s': %s" % (backend, e))
> django.core.cache.backends.base.InvalidCacheBackendError: Could not find
> backend 'johnny.backends.memcached.MemcachedCache': 'module' object has no
> attribute 'CacheClass'
>
> Surfing the netI found a workaround for this error that applied to django
> 1.4 butturned out to be useless with 1.6.
> Please help
> Vittorio
>
>
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/663368a5-005a-4a58-a582-6d46afc75d41%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.