You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django-...@googlegroups.com
So I had an existing django project, but needed to add some content to certain templates that could be edited by the user. The path I took was to install the page module and create fake pages that hold those regions and call the programatically in the actual view like
class HomeView(TemplateView): template_name = 'home.html'
def get_context_data(self): k = super(HomeView, self).get_context_data() k.update({'page': Page.objects.get(slug='home-page')}) return k
and then in the template call
{{ page.content.main_message.0.render }}
Is this the way to tackle this? or is there a faincms way?
Thanks in advance.
Martin J. Laubach
unread,
Mar 23, 2013, 2:14:05 PM3/23/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django-...@googlegroups.com
Well the canonical way to render a Page is to use the feincms_render_region template tag (ie. your example would be {% feincms_render_region page "main_message" request %}).
hernantz
unread,
Mar 23, 2013, 3:00:00 PM3/23/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message