def add_app_ctx(ctx, app_slug):
 try:
  app = Webapp.objects.get(app_slug=app_slug)
  ctx['app'] = app
 except Webapp.DoesNotExist:
  pass
 return ctx

def add_app_ctx ( ctx , app_slug ) : try : app = Webapp . objects . get ( app_slug = app_slug ) ctx [ 'app' ] = app except Webapp . DoesNotExist : pass return ctx
if we are hitting the fireplace detail page .