i cant set my flask environment to development. it stays in production

PS C:\Users\Admin\Desktop\webserver> Scripts\Activate.ps1

(webserver) PS C:\Users\Admin\Desktop\webserver> $env:FLASK_APP = "server.py"

(webserver) PS C:\Users\Admin\Desktop\webserver> set FLASK_ENV=development

(webserver) PS C:\Users\Admin\Desktop\webserver> flask run

  • Serving Flask app 'server.py' (lazy loading)

  • Environment: production

WARNING: This is a development server. Do not use it in a production deployment.

Use a production WSGI server instead.



Read more here: https://stackoverflow.com/questions/68492824/i-cant-set-my-flask-environment-to-development-it-stays-in-production

Content Attribution

This content was originally published by lildice1 at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: