[Flask] html error 405 - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html) +--- Thread: [Flask] html error 405 (/thread-18974.html) |
[Flask] html error 405 - SheeppOSU - Jun-08-2019 I can't figure out why I am getting the html error 405. Thanks in advance def search(): form = SearchForm() if form.validate_on_submit(): user = User.query.filter_by(username=form.username.data).first() if user: return redirect(url_for('user_posts', username=user.username)) else: flash(f'The user {form.username.data} does not exist', 'warning') return redirect(url_for('search')) return render_template('search.html', title='Searching User', form=form) Forgot to add methods to the @app.route |