當我嘗試訪問我的Django管理站點,我得到了以下錯誤:Django的導入錯誤在/管理/
ImportError at /admin/
No module named django.views
Request Method: GET Request URL:
http://127.0.0.1:8000/admin/
Django Version: 1.4.1 Exception Type: ImportError Exception Value:No module named django.views
Exception Location: /usr/local/lib/python2.7/dist-packages/django/utils/importlib.py in import_module, line 35 Python Executable: /usr/bin/python Python Version: 2.7.3
這裏是我的urls.py文件:
from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
url(r'^$', include('home.urls')),
# Uncomment the admin/doc line below to enable admin documentation:
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
url(r'^admin/', include(admin.site.urls)),
)
當我發表評論行url(r'^$', include('home.urls'))
,管理網站工作againg。
我找不出我的問題是什麼。你可以幫我嗎?