def create_app(): form = CreateAppForm(request.form) if form.validate_on_submit(): app = Application.create(form.name.data, form.domain.data, form.description.data, warden.current_user()) return redirect(url_for('developer.app_details', domain=app.domain)) return render_template('developer/create_app.html', form=form)