def events(): _context = 'church' calendar = EventsList(CONST.CALENDAR_CHURCH) _events_calendar = calendar.group_events() _events = calendar.get_events(1) _calendar_id = CONST.CALENDAR_CHURCH _meta = { "title": "Church Events", "description": "" } return render_template('layouts/events.html', **locals())
def events(): _data = cms.read_home_page('school') calendar = EventsList(CONST.CALENDAR_SCHOOL) _events_calendar = calendar.group_events() _context = 'school' _events = calendar.get_events(1) _calendar_id = CONST.CALENDAR_SCHOOL _meta = { "title": "School Events", "description": "" } return render_template('layouts/events.html', **locals())