def create(): form = URLForm() if form.validate_on_submit(): return redirect(url_for('edit', url=form.clean_url(form.url.data))) return render_template('create.html', form=form)