django错误该怎么办,因为我无法调试

时间:2015-07-16 06:44:46

标签: django

请帮帮我。我正在关注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'),
]

enter image description here

0 个答案:

没有答案