I usually have no problem adding forms to flask pages however this time I'm really struggling to find the specific issue.
Here are the details of my route:
@app.route("/add_recipe")
def add_recipe():
form = abcForm()
return render_template('add_recipe.html', title="Recipe", form= form)
Here is my form class
class abcForm(FlaskForm):
email = StringField('Email', validators=[DataRequired(), Email()])
password = PasswordField('Password',validators=[DataRequired()])
remember = BooleanField('Remember Me')
submit = SubmitField('Login Up')
The error message I get is "NameError: name 'abcForm' is not defined"