django-cms-tutorial icon indicating copy to clipboard operation
django-cms-tutorial copied to clipboard

Update Step 4 - Add app_name attribute

Open mooja opened this issue 11 years ago • 2 comments

Latest django-polls from pip uses the 'polls' namespace to display the poll app. From polls/templates/index.html:

    <li><a href="{% url 'polls:detail' poll.id %}">{{ poll.question }}</a></li>

Unless you set the 'app_name' to 'polls', the example in the tutorial won't work.

mooja avatar Sep 20 '14 01:09 mooja

I tried to do that but still warning Django NoReverseMatch, u'polls' is not a registered namespace

I could not solve this. :/

maoaiz avatar Oct 03 '14 13:10 maoaiz

If you add the app_name after you already added the plugin to a page, try deleting the page and recreating it, for me that did the trick. If an app_name is specified, you can set the instance name of the app when adding it, if no app_name is set, this option doesn't show up. I assume this is the origin of the problem

julienp avatar Oct 09 '14 13:10 julienp