This course covers the essentials of web development in Python. It starts by showing you how to set up an interaction between client and server quickly and efficiently, before moving on to cover how to write templates to allow HTML to interact seamlessly with Python. From there, the course flows into receiving and processing input from your app’s users and grabbing data through web services. You’ll be surprised at the range of functionality you’ll find in a web app that takes only 45 minutes to develop!
The course shows you how to develop a fully functional app in Flask using simple but powerful features. You’ll learn different ways to utilize the input from your app’s users simply and securely. You’ll also discover how to integrate API calls with your app, and how to make template files so that the Python and HTML combo becomes simple and fun to work with.
This course covers all the essentials of web development; input, processing, and output. It’s really all you need to develop an engaging and interactive web app faster than ever before!
Gareth Dwyer is a South African Computer Science student with several years of Python and web development experience. He first became interested in coding when he was 14, and this interest has only grown since then. His other computer-related interests include Information Security, Natural Language Processing, NoSQL databases, and most things Linux, while in his largely imagined free time he pursues interests in chess, philosophy, classical piano, and languages.
We need to know what we'll achieve through this course, and set up the software and frameworks we'll be working with.
We need to create a basic Flask app that we can extend to suit our needs.
We need our app to be able to deal with subpages and URL routing.
We need to know how to get data from the API and return it to the client as HTML.
We need to separate our view code from our logic code for simplicity and efficiency.
We need to create lists and tables inside our view files.
We need to be able to search for more than one city. We'll pass in a search term, and then use the API to get the weather data for the matching result.
It's counter-intuitive for the user to have to modify the URL. We'll add a simple text input for the search query instead.
Our web app uses plain HTML and isn't aesthetically pleasing. We'll add a stylesheet and a Favicon in order to improve the look.
The user shouldn't have to search for the same city all the time. We'll remember the user's default city using cookies and display this by default.
Our app is quite clean and simple, but other apps will require more functionality. We'll look at some of the better Flask extensions.
Packt has been committed to developer learning since 2004. A lot has changed in software since then - but Packt has remained responsive to these changes, continuing to look forward at the trends and tools defining the way we work and live. And how to put them to work.
With an extensive library of content - more than 4000 books and video courses -Packt's mission is to help developers stay relevant in a rapidly changing world. From new web frameworks and programming languages, to cutting edge data analytics, and DevOps, Packt takes software professionals in every field to what's important to them now.
From skills that will help you to develop and future proof your career to immediate solutions to every day tech challenges, Packt is a go-to resource to make you a better, smarter developer.
Packt Udemy courses continue this tradition, bringing you comprehensive yet concise video courses straight from the experts.