Flask templates and staticc paths declared when instantiate app object are relative to project path (also xeclared when instantiate app). So I recommend to clearly declare the project path to be aware of it. By default Flaak consider the project path derived from __name__ when instantiate as =Fkask(_name_)