0

Wow, so I feel incredibly silly for posing this question, but what am I doing wrong?

When accessing the server (http://127.0.0.1:5000/), I repeatedly get the error:

flask.cli.NoAppException: Could not import "flaskr.flaskr".

pwd: ./flask/flaskr

Then I researched the error and found this to be most relevant to my problem, but I [cd ..] to pwd [./flask] but received a 404 error. This has been plaguing me all day and I would greatly appreciate aid!

Thanks in advance!

eyllanesc
  • 235,170
  • 19
  • 170
  • 241
Xian
  • 1
  • 1

2 Answers2

0

Did you follow to all the steps described in readme ?

Especially: pip install -e .

Piotr
  • 21
  • 1
  • Thank you, but I was aiming to follow along with the tutorial step-by-step as opposed to downloading the entire completed project. – Xian Aug 08 '18 at 21:57
0

I had the same error. What I did was to create a folder named flaskr and then move the __init__.py file into it (that is move the __init__.py into flaskr folder).

Toby Smith
  • 1,505
  • 2
  • 15
  • 24
ImmortalTITAN
  • 61
  • 1
  • 1