def not_found(error): return render('error.html', title='404. Oops.', code=404, message='Oops. This page doesn\'t exist!', url='/', action='Return to homepage?'), 404
def not_found(error): return render( 'error.html', title='500. Hurr.', code=500, message= 'Sorry. Here is the error: <br><code>%s</code><br> Please file an issue on the <a href="https://github.com/alvinwan/piipod/issues">Github issues page</a>, with the above code if it has not already been submitted.' % str(error)), 500
def not_found(error): return ( render( "error.html", title="500. Hurr.", code=500, message='Sorry. Here is the error: <br><code>%s</code><br> Please file an issue on the <a href="https://github.com/alvinwan/piipod/issues">Github issues page</a>, with the above code if it has not already been submitted.' % str(error), ), 500, )
def not_found(error): return ( render( "error.html", title="404. Oops.", code=404, message="Oops. This page doesn't exist!", url="/", action="Return to homepage?", ), 404, )
def render_dashboard(f, *args, **kwargs): """custom render for dashboard""" from piipod.views import render return render(f, *args, **kwargs)
def home(): """Home page""" return render("index.html")
def render_group(f, *args, **kwargs): """custom render for groups""" from piipod.views import render data = vars(g) data.update(kwargs) return render(f, *args, **data)
def render_event(f, *args, **kwargs): """custom render for events""" from piipod.views import render data = vars(g) data.update(kwargs) return render(f, *args, **data)
def home(): """Home page""" return render('index.html')