Friday, May 26, 2017

Re: Updating 1.10 to 1.11.1 and AttributeError

Simon, thanks. I was getting the same error.

I was caching the query, and thought I'd turned it off, but was still getting the error.

Running my webapp via runserver (instead of my usual approach of using passenger) showed the problem:

Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
/path/to/env/lib/python3.6/site-packages/django/core/cache/backends/filebased.py:41: RuntimeWarning: Pickled model instance's Django version 1.10.6 does not match the current version 1.11.1.
  return pickle.loads(zlib.decompress(f.read()))

Once I cleared the cached files on the disk, the problem went away. Hope this helps, Jorge!

-Birkin


On Tuesday, May 23, 2017 at 9:34:27 AM UTC-4, Simon Charette wrote:
Hello,

Could you please share all of your INSTALLED_APPS?

Are you using any kind of query caching?

Thanks,
Simon

--
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 django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/78b2ba2b-79c5-46bc-9b33-049822f8d93a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment