Personal website served with a flask server
This project work with Flask and Python 3.7.
- You can install and download conda or miniconda.
- Create a new environment with Python 3.7 then install pip
- Use the requirements.txt to install all the python dependencies
- Assign the entry point of your server to the FLASK_APP variable On linux:
export FLASK_APP=***.py
- Then to launch the server
flask run
Carefull the entry point of the flask module will be where you launch this method. It can have impact on the folder path.
- Everything about the server code should be in the app/ folder.
- Each folder should contain a init.py file.
- To set up the debug mode
export FLASK_ENV=development
List all environments
conda info -e
Activate an environment
conda activate ***