Today We are Going To Solve WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead in Python. Here we will Discuss All Possible Solutions and How this error Occurs So let’s get started with this Article.
Contents
How to Fix WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead Error?
- How to Fix WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead Error?
To Fix WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead Error just Run command inside the CLI. You can solve this error by just running these commands inside the Command Line Interface. So just run these commands:
export FLASK_APP=app.py export FLASK_ENV=development export FLASK_DEBUG=0 flask run
- WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead
To Fix WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead Error just Run flask with below commands. To run the flask using the following command:
$ export FLASK_APP = hello.py $ export FLASK_ENV = development $ flask run
It will help you.
Solution 1 : Run command inside the CLI
You can solve this error by just running these commands inside the Command Line Interface. So just run these commands:
export FLASK_APP=app.py
export FLASK_ENV=development
export FLASK_DEBUG=0
flask run
Solution 2 : Run flask with below commands
To run the flask using the following command:
$ export FLASK_APP = hello.py
$ export FLASK_ENV = development
$ flask run
It will help you.
Conclusion
So these were all possible solutions to this error. I hope your error has been solved by this article. In the comments, tell us which solution worked? If you liked our article, please share it on your social media and comment on your suggestions. Thank you.
Also Read This Solutions
- ModuleNotFoundError: No module named ‘utils’
- ImportError: cannot import name ‘_registerMatType’ from ‘cv2.cv2’
- UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure
- Attempted import error: ‘Switch’ is not exported from ‘react-router-dom’
- AAPT: error: resource android:attr/lStar not found in Android