Django项目ImportError:没有名为的模块

时间:2014-05-13 21:10:13

标签: python django

我刚刚运行了一个项目并收到以下错误:

14:01:07 web.1  |   File "/Library/Python/2.7/site-packages/django/utils/importlib.py", line 40, in import_module
14:01:07 web.1  |     __import__(name)
14:01:07 web.1  | ImportError: No module named pinpoint.urls

14:01:07 web.1  |   File "/Library/Python/2.7/site-packages/django/utils/importlib.py", line 40, in import_module
14:01:07 web.1  |     __import__(name)
14:01:07 web.1  | ImportError: No module named pinpoint.apps.messagemanager
14:01:07 web.1  | Internal Server Error: /

更像是这些。

我似乎无法理解为什么我会收到这些导入错误。除此之外,所有应用程序都会出现导入错误。我正在运行virtualenv并在克隆它后第一次运行它。所有应用程序似乎都安装正确:

    INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    # Uncomment the next line to enable the admin:
    'django.contrib.admin',
    # Uncomment the next line to enable admin documentation:
    'django.contrib.admindocs',
    'pinpoint.apps.careers',
    'pinpoint.apps.contact',
    #'south',
    'pinpoint.apps.beaconmanager',
    'pinpoint.apps.geofencemanager',
    'pinpoint.apps.locationmanager',
    'pinpoint.apps.messagemanager',
)

编辑: 我所要求的文件结构:https://app.box.com/s/hhqv72jeqbv9yv41p71r

再次编辑:python path-

>>> for path in sys.path:
...     print path
... 

/Library/Python/2.7/site-packages/pip-1.5.4-py2.7.egg
/Library/Python/2.7/site-packages/Gimbpy-1.0-py2.7.egg
/Library/Python/2.7/site-packages/requests-2.2.1-py2.7.egg
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC
/Library/Python/2.7/site-packages
>>> 

0 个答案:

没有答案