请帮帮我。我正在关注Django文档,一切正常,但这是一个导致错误的错误。如果我删除网址(r' ^民意调查/',包含(' polls.urls',名称空间="民意调查")),则不会出错后来它在创建表单时引起问题。那现在该怎么办......?
polls/urls.py
...
from django.conf.urls import url, include
from polls import views
from django.contrib import admin
urlpatterns = [
url(r'^polls/', include('polls.urls', namespace="polls")),
url(r'^admin/', include(admin.site.urls)),
url(r'^$', views.index, name='index'),
url(r'^specifies/(?P<question_id>[0-9]+)/$', views.detail, name='detail'),
# ex: /polls/5/results/
url(r'^(?P<question_id>[0-9]+)/results/$', views.results, name='results'),
# ex: /polls/5/vote/
url(r'^(?P<question_id>[0-9]+)/vote/$', views.vote, name='vote'),
]