So we need to maintain somewhere it’s counter right when the server stops so we will store in a file at the time of server start we will load it. Let’s say you want to add little extra touch like creating a new API where you can page view counter. If you open in the browser you will see thisĬongrats!!! your application is up. If you run below command you can see your application is up and running. Let’s assume you stored the above code in app.py. To run this code we need python I am assuming you have it already if not please install I will recommend installing Python 3. Whenever we look for an example mostly we will get the code sample looking like this. To build a small API or web application in Python I think Flask is the best framework candidate to start with.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |