When I try to access to my Django admin site I got the following error:
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
Here is my urls.py file:
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)),
)
When I comment the line url(r'^$', include('home.urls')), the admin site works againg.
I can't figure out what my problem is. Can you help me?