1
我正在與http://kw20kb.wikidot.com/geodjango繼續。我在我的項目文件夾中創建了一個urls.py,並在其中添加了下面的行。導入錯誤:Django中沒有模塊命名設置
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
是什麼原因造成這個錯誤?