From 266be4e867123d67deb682970447d355b73e66ca Mon Sep 17 00:00:00 2001 From: Max Shkurygin Date: Fri, 19 Sep 2014 21:09:11 -0400 Subject: [PATCH] Update Step 4 - Add app_name attribute Latest django-polls from pip uses the 'polls' namespace to display the poll app. >
  • {{ poll.question }}
  • Unless you set the 'app_name' to 'polls', the example in the tutorial won't work. --- Step 4 - CMS Apps.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Step 4 - CMS Apps.md b/Step 4 - CMS Apps.md index 93a1613..9ac39e0 100644 --- a/Step 4 - CMS Apps.md +++ b/Step 4 - CMS Apps.md @@ -19,6 +19,7 @@ from django.utils.translation import ugettext_lazy as _ class PollsApp(CMSApp): name = _("Poll App") # give your app a name, this is required urls = ["polls.urls"] # link your app to url configuration(s) + app_name = "polls" apphook_pool.register(PollsApp) # register your app ```