I'm learning Flask, making a form with wtforms , but by doing:
import forms
in my views.py file, where are the routes, I get it:
"ModuleNotFoundError: no module named 'forms'",
and the forms.py file are in the same directory as views.py.
The import header of forms.py contains:
from wtforms import Form
from wtforms import StringField, TextField
from wtforms.fields.html5 import EmailField
class CommentForm(Form):
........
The views.py file contains:
from flask import request, redirect, render_template, url_for
from app import app
import forms
.........
P.D: I would put the files in external links, but I do not have permission to put many links yet.