app.py defines a sectors view that use a Sectors class defined in sectors.py. When I access the view, I get an AttributeError:
sector = sectors.Sectors()
AttributeError: 'function' object has no attribute 'Sectors'
import sectors
@app.route("/sectors")
def sectors():
sector = sectors.Sectors()
return render_template('sectors.html', sector=sector)
I imported sectors, so it should be a module, not a function, and it does have Sectors defined. Why isn't this working?