我将继续http://kw20kb.wikidot.com/geodjango。我在项目文件夹中创建了一个urls.py,并在其中添加了以下行。
from django.conf.urls import patterns, include, url
from django.contrib import admin
import settings
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Uncomment the next line to enable the admin:
url(r'^admin/', include(admin.site.urls)),
url(r'', include('waypoints.urls')),
)
当我运行我的开发服务器时,我收到错误
Import Error: No module named settings
导致此错误的原因是什么?