Django Error u“'polls” is not a registered namespace

后端 未结 13 2615
误落风尘
误落风尘 2021-01-31 07:41

Yesterday I was working on my first app using this tutorial. It\'s a Poll and Choice app. The first page displays the question and when you click on the question it\'s suppose t

13条回答
  •  孤城傲影
    2021-01-31 08:23

    I think you missed the namespace:

    urlpatterns = patterns('',
        url(r'^polls/', include('polls.urls', namespace="polls")),
    )
    

提交回复
热议问题