DEV Community

Discussion on: Install Flask and create your first web application

Collapse
 
sanbaner28 profile image
sanbaner28

I'm getting an Error here -

(venv) Sandips-MacBook-Pro:Sandip_TSConsole_Coral_Prototype_GIT sanbaner$ export FLASK_APP=hello.py
(venv) Sandips-MacBook-Pro:Sandip_TSConsole_Coral_Prototype_GIT sanbaner$
(venv) Sandips-MacBook-Pro:Sandip_TSConsole_Coral_Prototype_GIT sanbaner$ flask run

  • Serving Flask app "hello.py"
  • Environment: production WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
  • Debug mode: off Usage: flask run [OPTIONS]

Error: Could not import "hello".
(venv) Sandips-MacBook-Pro:Sandip_TSConsole_Coral_Prototype_GIT sanbaner$

Collapse
 
sanbaner28 profile image
sanbaner28

Working fine now !

Collapse
 
aadyajha12 profile image
Aadya 😬🥰

hi how did u solve this? i get the same error as well.