- Create virtual env
python3 -m venv venv
- Activate venv
. venv/bin/activate
- Install Flask
pip3 install Flask
- Launch the web server in the localhost
flask --app server run --debug
- Export packages info
pip3 freeze > requirements.txt
- Register and go to Dashboard on https://www.pythonanywhere.com/
- Create a web project
- Go to bash and git clone your Flask project
- Setup virtual env
mkvirtualenv --python=/usr/bin/python3.9 my-virtualenv
- Install Flask
pip install flask
- Go to the project directory and install packages
pip install -r requirements.txt
- pip install flask
- Go to the web tab and set the virtualenv path
- Reload the path and open it
-
Website Template
-
Doc
-
Sample
-
Source