power on 192.168.8.108 106 or 106<br />
cd votr<br />
source bin/activate<br />
cd votr<br />
export FLASK_APP=votr.py<br />
export FLASK_DEBUG=1<br />
flask run --host=0.0.0.0<br />
192.168.8.108:5000 참고 /home/pi/vote/votr <br />
id kskang2 pw kang5945<br />
변경 votr.py> #45#db.create_all() 現uncomment<br />
pip install flask_sqlalchemy<br />
설명 Blog 강의 <br />
https://danidee10.github.io/blog/page2/ <br />
https://danidee10.github.io/2016/09/19/flask-by-example-2.html <br />
초기참고install時<br />
$ sudo pip install virtualenv<br />
$ virtualenv -p python3 votr<br />
$ cd votr<br />
$ source bin/activate<br />
(votr) [user@hostname votr]$<br />
$ pip install flask<br />
$ mkdir votr<br />
강의시작<br />
https://danidee10.github.io/2016/09/18/flask-by-example-1.html<br />
동작시작<br />
$ cd votr<br />
$ source bin/activate *(votr) [user@hostname votr]$<br />
$ cd votr<br />
$ python3 votr.py (flask run없이 동작함)<br />
참고 /home/pi/vote/votr 192.168.8.108:5000