def upload_page(): if not app.config['ALLOW_UPLOAD']: return render_template('search.html') return render_template('upload.html')