Setting virtual environment, install flask dan menjalankan file python d
di cmd windows
Membuat environment
> py -3 -m venv venv
Mengaktifkan environment
> venv\Scripts\activate
Install Flask
> pip install Flask
export file python ke flask
>set FLASK_APP=app.py
memunculkan bug di browser dan reload otomatis
>set FLASK_ENV=development
Menjalankan file di flask
>flask run
buka browser panggil ip flask di browser
http://127.0.0.1:5000/
Menjalankan file di flask
>flask run
buka browser panggil ip flask di browser
http://127.0.0.1:5000/
0 Comments