def page_detail(request, slug, page_slug, template_name='groups/pages/page_detail.html'):
 group = get_object_or_404(Group, slug=slug)
 page = get_object_or_404(GroupPage, group=group, slug=page_slug)
 return render(request, template_name, {'group': group, 'page': page})

def page_detail ( request , slug , page_slug , template_name = 'groups/pages/page_detail.html' ) : group = get_object_or_404 ( Group , slug = slug ) page = get_object_or_404 ( GroupPage , group = group , slug = page_slug ) return render ( request , template_name , { 'group' : group , 'page' : page } )
returns a group page .