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

后端 未结 13 2616
误落风尘
误落风尘 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:26

    For anyone using "django-hosts":

    I had the same error and for me adding this to my template solved it (without any us of namespace etc.):

    {% load hosts %}
    Admin dashboard
    

    Additionaly I added PARENT_HOST = 'YOUR_PARENT_HOST' to my settings.py

    Reference

提交回复
热议问题