CH5 The database
Outcome of ch5:
How to run:
- Collocte webch5.py / s05.py / in the same directory( put index.html in the 'templates' folder;
- Run webch5.py in the terminal, and then open a browser and enter'127.0.0.1:5000' , follow the instructions on the page to search the weather forecast.
- Enter 'sqlite3 data.sqlite' in the terminal, RETURN ;and enter 'select * from weatherapi ;' and RETURN it, you will see the data is already added to the sqlite.
- After you correct the weather information on browser, repeat step 3, you can see the changed data.
Accompany Screenshot of result:
