Hands-On Application Development with PyCharm by Bruce M. Van Horn II Quan Nguyen
Author:Bruce M. Van Horn II
, Quan Nguyen
Language: eng
Format: epub
Publisher: Packt Publishing Pvt Ltd
Published: 2023-10-03T00:00:00+00:00
If you look closely, the argument weâre passing is an array. You can pass one or more methods allowing one route to handle one or several methods differently. Here, weâre locking the root route function to the HTTP GET method, which is what your browser issues when you visit a site.
Next, weâve added Flaskâs render_template method to our import. I changed the name of the function from hello_world to root, then I changed the return from the 'Hello World' string to the result of the render_template function that takes the filename of a template. Flask knows to find index.html in the Templates folder.
Now weâre ready to try it out. Make sure your Flask app is selected in the run configuration dropdown and click the green Run button. The Run tab will appear at the bottom of the PyCharm screen. Mine appears as shown in Figure 8.11.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Building Blazor WebAssembly Applications with gRPC by Václav Pekárek(3705)
Hands-On Application Development with PyCharm by Bruce M. Van Horn II Quan Nguyen(2193)
Designing Web APIs with Strapi: Get started with the Strapi headless CMS by building a complete learning management system API by Khalid Elshafie Mozafar Haider(1054)
Django 4 for the Impatient. Learn the core concepts of Python web development with Django in one weekend by G. Lim D. Correa(909)
Vue.js 3 Design Patterns and Best Practices by Pablo David Garaguso(850)
Accelerating Server-Side Development with Fastify by Manuel Spigolon & Maksim Sinik & Matteo Collina(849)
Drupal 10 Module Development - Fourth Edition by Daniel Sipos(766)
Mastering CSS Grid by Thormeier Pascal;(728)
Going the Distance with Babylon.js: Building extensible, maintainable, and attractive browser-based interactive applications using JavaScript by Josh Elster(700)
Simplifying State Management in React Native by Aleksandra Desmurs-Linczewska(618)
Java Memory Management by Maaike van Putten & Seán Kennedy(548)
Hands-On Application Development with Pycharm by II Bruce M. Van Horn;Nguyen Quan;(530)
Joomla!® Explained: Your Step-by-Step Guide (Joanne Romanovich's Library) by Stephen Burge(323)
Python & JavaScript Mastery: 2 Books In 1- Learn And Master Two Powerful Programming Languages by Alex iversion(311)
Beginning Modern JavaScript: A Step-By-Step Gentle Guide to Learn JavaScript for Beginners (Code With Nathan) by Sebhastian Nathan(261)
Understanding JavaScript Promises by Nicholas C. Zakas(250)
Create GUI Applications with Python & Qt6: The hands-on guide to making apps with Python by Martin Fitzpatrick(246)
Programming With Java by Edet Theophilus(245)
NextJS 13 and React Crash Course: Build a Full Stack NextJS 13 App with React, Tailwind and Prisma backend by Lim Greg(235)
