def display_shortened_urls(hash): #if the hash is not there q = db.Query(Short) q.filter("hash_value = ",hash) short = q.get() if not short: return render_template('404.html'), 404 urls = Url.gql("WHERE ANCESTOR IS :1", short) return render_template('hash.html',urls=urls)