在Mac计算机上进行开发时,我使用方案'project_name.app_name'
导入应用(即INSTALLED_APPS
中的settings.py
)。
但是当我使用Cygwin在Windows机器上克隆我的项目时,我收到错误报告无法找到模块(应用程序)。我必须删除project_name.
前缀才能使其正常工作。我真的很困惑,因为在使用Cygwin之前,它运行良好。
Cygwin PYTHONPATH:
['',
'/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg',
'/usr/lib/p ython2.6/site-packages/pip-1.0.1-py2.6.egg',
'/home/johnd/Projects/book-scouts/s rc/django-registration',
'/home/johnd/Projects/book-scouts/src/django-badges',
' /home/johnd/Projects/book-scouts/src/python-amazon-product-api',
'/home/johnd/Pr ojects/book-scouts/src/django-ratings',
'/home/johnd/Projects/book-scouts/src/dj ango-follow',
'/home/johnd/Projects/book-scouts/src/django-relationships',
'/usr /lib/python26.zip',
'/usr/lib/python2.6',
'/usr/lib/python2.6/plat-cygwin',
'/usr/lib/python2.6/lib-tk',
'/usr/lib/python2.6/lib-old',
'/usr/lib/python2.6/lib-d ynload',
'/usr/lib/python2.6/site-packages']
Mac PYTHONPATH:
/Library/Python/2.6/site-packages/pip-0.8-py2.6.egg
/Library/Python/2.6/site-packages/simplejson-2.1.1-py2.6-macosx-10.6-universal.egg
/Library/Python/2.6/site-packages/Whoosh-0.3.18-py2.6.egg
/Library/Python/2.6/site-packages/django_taggit-0.9.1-py2.6.egg
/Library/Python/2.6/site-packages/django_lint-0.0.0-py2.6.egg
/Library/Python/2.6/site-packages/dulwich-0.7.0-py2.6-macosx-10.6-universal.egg
/Library/Python/2.6/site-packages/hg_git-0.2.6-py2.6.egg
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python26.zip
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-darwin
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-old
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload
/Library/Python/2.6/site-packages
/Library/Python/2.6/site-packages/PIL
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/PyObjC
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode