コード例 #1
0
def index(request,slug):
    staticpage = get_object_or_404(StaticPage,slug=slug)

    page = {
        'title' : staticpage.title,
        }


    return render( request,
                   'staticpage/staticpage_index.html',
                   {'staticpage':staticpage,
                    'page':page,
                    'menu': get_menu_items(),
                    'path': request.path,
                    },
                   )