djangoでインポートエラーが発生します。私のメインのurls.py設定ファイルはmain/main/urls.py
私のモジュールにあります。またはアプリはここにありますmain/apps/builder/urls.py
。
トレースバックエラー
ImportError at /
No module named apps.builder.urls
Request Method: GET
Request URL: ***************
Django Version: 1.4
Exception Type: ImportError
Exception Value:
No module named apps.builder.urls
Exception Location: /usr/lib/python2.6/site-packages/django/utils/importlib.py in import_module, line 35
Python Executable: /usr/bin/python26
Python Version: 2.6.0
Python Path:
['/home/pycode/main',
'/usr/lib/python26.zip',
'/usr/lib/python2.6',
'/usr/lib/python2.6/plat-linux2',
'/usr/lib/python2.6/lib-tk',
'/usr/lib/python2.6/lib-old',
'/usr/lib/python2.6/lib-dynload',
'/usr/lib/python2.6/site-packages']
Server time: Tue, 12 Jun 2012 12:39:17 -0500
main / main / urls.py
from django.conf.urls import patterns, include, url
urlpatterns = patterns('',
url(r'^$', include('main.apps.builder.urls')),
)