Beispiel #1
0
def admin_sections():
    if not User.is_logged_in():
        return redirect('/admin/login?e=You%20need%20to%20log%20in%20first')
    args = {
        'sections': Section.get_all()
    }
    return render('/admin/sections.html', 'Sections', args)
def public_homepage():
    return render_public_template(
        'public/default.html',
        'HomePage',
        {
            'sections': Section.get_all()
        }
    )

####: Stop Editing
Beispiel #3
0
def minipressroom(request):
    
    return render_to_response("minipressroom/pressroom.html",dict(sections=Section.get_all()),context_instance=RequestContext(request))