def index(request): # check if sunday now = datetime.now() listen_live = now.strftime('%w') == 0 return render(request, 'index.html', { 'listen_live': listen_live, 'recaptcha_publickey': settings.RECAPTCHA_PUBLIC_KEY, 'sitemaps': StaticViewSitemap.itemnames(StaticViewSitemap), #'jaarthema_publish_date': (datetime.now() > datetime.strptime('22-08-2016 00:00', '%d-%m-%Y %H:%M')) })
def anbi(request): return render(request, 'anbi.html', { 'sitemaps': StaticViewSitemap.itemnames(StaticViewSitemap), })
def orgel(request): return render(request, 'orgel.html', { 'sitemaps': StaticViewSitemap.itemnames(StaticViewSitemap), })
def kindercreche(request): return render(request, 'kindercreche.html', { 'sitemaps': StaticViewSitemap.itemnames(StaticViewSitemap), })
def kerktijden(request): return render(request, 'kerktijden.html', { 'sitemaps': StaticViewSitemap.itemnames(StaticViewSitemap), })