From cfb494d6ad13b3862758efc46fda4b3cecaa03f6 Mon Sep 17 00:00:00 2001 From: rubinoske Date: Wed, 12 Mar 2014 12:05:05 +0100 Subject: [PATCH] namespace i.s.o. path.to.view I think it's more logical to use a namespace, otherwise I had some trouble to make it all work... --- Step 3 - CMS Plugins.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Step 3 - CMS Plugins.md b/Step 3 - CMS Plugins.md index 3824b68..7534bd6 100644 --- a/Step 3 - CMS Plugins.md +++ b/Step 3 - CMS Plugins.md @@ -80,7 +80,7 @@ The template is located at `polls/templates/polls/plugin.html` and should look s ```html

{{ instance.poll.question }}

-
+ {% csrf_token %} {% for choice in instance.poll.choice_set.all %} @@ -101,7 +101,7 @@ INSTALLED_APPS += ('polls') Secondly, add the following line to the project's `urls.py`: ```python -url(r'^polls/', include('polls.urls')), +url(r'^polls/', include('polls.urls', namespace='polls')), ``` > **Note**: CMS Patterns (`url(r'^', include('cms.urls')),`) must always be last entry in the urls.py!