Unresolved import: models

前端 未结 9 1106
星月不相逢
星月不相逢 2020-12-03 03:32

I\'m doing my VERY first project using python/django/eclipse/pydev following this guide

http://docs.djangoproject.com/en/dev/intro/tutorial01/

My only additi

9条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-03 03:57

    I'm on Mac OS X, but all I had to do was to add:

    /Library/Python/2.6/site-packages
    

    to my System PYTHONPATH (Found in: Preferences > Pydev > Interpreter - Python)

    The equivalent for Ubuntu 10.04 would be:

    /usr/lib/pymodules/python2.6
    

    I'm guessing that the equivalent for Ubuntu 9.x could be:

    /usr/lib/python2.6/site-packages
    

    If it isn't and you're tired of looking, just upgrade to Ubuntu 10.04 and you should be fine.

提交回复
热议问题