im experiencing the same problem. i started with a simple app and the modules.py was at the root of the app package, so everything was fine. now i extended the app and restructured the files in it by making a subfolder app/models and inside an __init__.py and the mymodel.py
in the urls.py which i have an import like from app.models.mymodel import myclass and while the django shell is able to import it without any problem the django server isnt. im using buildout to build the whole django environment so the python interpreter im starting the shell and the one of the server is the same. i already tried to remove all .pyc and start everything again but i had no luck. this is weird and i cant figure out what the problem could be. Bill Freeman wrote: > I had another couple of thoughts. > > In the manage.py shell, try: > > from openid.yadis import xri > xri > > The output will include from where it got xri. Make sure that it's > coming from your lib directory, and not from some old system wide > installation of openid. > > > Instead of: > > from openid.association import Association as OIDAssociation > > try: > > from association import Association as OIDAssociation > > > Also, expecially if the previous worked, in your settings.py, instead of: > > sys.path.append(os.path.join(FILE_ROOT, 'lib', 'openid')) > > try > > sys.path.append(os.path.join(FILE_ROOT, 'lib')) > > Bill > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---

