To get started, create a folder called templates and create a file called index.html with the following code:.To do so, you will need a file called app.py and a folder called templates.You can run flask by executing flask run. Flask is a third-party library that allows you to host web applications using the Flask framework within Python.Today, we are going to utilize a new server that can parse out a web address and perform actions based on the URL provided. You have used http-server in the past to serve your web pages.Accordingly, you can have web pages that are generated by options selected by your user. Dynamic pages refer to the ability of Python and similar languages to create HTML files on-the-fly.In the past, when you visited a page, the browser downloaded an HTML page, and you were able to view it.Up until this point, all HTML you saw was pre-written and static.Today, we will be moving from HTML and CSS into combining HTML, CSS, SQL, Python, and JavaScript so you can create your own web applications.In these past several weeks, you have learned how to learn about programming.Indeed, this class has been far less of a C class or Python class and far more of a programming class, such that you can go on to follow future trends.In previous weeks, you have learned numerous programming languages, techniques, and strategies.GitHub Instagram LinkedIn Reddit Threads Twitter This is CS50 CS50’s Introduction to Computer Scienceĭavid J.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |