@app.route('/contact', methods=['POST'])
def contact():
    form = ContactForm()
    if form.validate_on_submit():
        flash('Your message was received')
        DiscordWebhook(url=discord_url, content=f'Contact @hackathon: name: {form.name.data}, email: {form.email.data}, message: {form.message.data}').execute()
    else:
        flash('Your message was not transferred correctly.')
    return redirect('/')
@app.route('/contact', methods=['POST'])
def contact():
    form = ContactForm()
    if form.validate_on_submit():
        flash('Your message was received')
        DiscordWebhook(url=discord_url, content=f'Contact @hackathon: name: {form.name.data}, email: {form.email.data}, message: {form.message.data}').execute()
    else:
        flash('Your message was not transferred correctly.')
    return redirect('/')