http://ieautoreview-scoli.pythonanywhere.com/
This tool is created and tested using Python 3.11.
Create and enable the virtual environment, and install the required packages.
Note that
coloredlogsis commented inmysite/requirements.txt, as it doesn't work with the PythonAnywhere site. It's still needed for dev work though, so make sure it gets installed too, by uncommenting it.
Preferably create the virtual environment somewhere under the project root.
make test command doesn't account for virtual environments located outside project scope
venv_dir="<venv/dir/name/here>"
python -m venv "$venv_dir"
source "$venv_dir"/bin/activate
pip install --upgrade pip setuptools wheel
pip install -r requirements.txt$venv_dir = "<venv/dir/name/here>"
python -m venv "$venv_dir"
"$venv_dir"/Scripts/Activate.ps1
pip install --upgrade pip setuptools wheel
pip install -r requirements.txt
To run the app, run:
cd mysite
export PYTHONUNBUFFERED=1
export FLASK_APP=flask_app:app
export FLASK_ENV=development
export FLASK_RUN_PORT=5000
python -m flask run cd mysite
$env:PYTHONUNBUFFERED = 1
$env:FLASK_APP = "flask_app:app"
$env:FLASK_ENV = "development"
$env:FLASK_RUN_PORT = 5000
python -m flask run or, if you're using PyCharm, run one of the two saved run configurations.
To run tests, run:
cd mysite
pytest -p no:warningsor, using make:
cd mysite
make test