我的Django項目總是給我一個404,不管我想訪問的頁面。作爲一個Django noob,我不知道如何解決這個問題。有什麼建議麼?的Django總是給404
編輯:這是我的urls.py
:
from django.conf.urls.defaults import *
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('',
# Example:
# (r'^mcifdjango/', include('mcifdjango.foo.urls')),
# Uncomment the admin/doc line below to enable admin documentation:
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
# (r'^admin/', include(admin.site.urls)),
)
你試過請...? – 2011-03-02 16:01:12
沒有。我必須瞭解如何解決問題,所以我沒有試圖排除故障。 – 2011-03-02 16:02:36
你的urls.py中有什麼? – markijbema 2011-03-02 16:02:43