[Django]-Sync django-piston models when using egg module

8👍

Looks like this is a known issue with Piston 0.2.3. You could apply this patch or just use version 0.2.2 by installing it as so:

pip install django-piston==0.2.2
👤Spike

1👍

I had the same issue, not sure what caused it, but to fix it, I uncommented the piston app out of my INSTALLED_APPS in settings, and it started working again, so it was something to do with loading piston. I’m going to remove piston from my site-packages directory and try to reload it, and see if that helps.

Also, while trying to find the answer to my question I came across a few sites with similar issues.

This site describes an issue related to __init__.py missing.

http://www.willmer.com/kb/2007/12/attributeerror-module-object-has-no-attribute-blah/

This site describes circular imports as an issue.

http://www.answermysearches.com/python-fixing-module-object-has-no-attribute/333/

And another one that I can’t find, mentioned something about not being able to load the files correctly from an app installed as an egg.

Leave a comment