Python Flask Basics Welcome to Flask Request Variables

Naming conventions: regarding statement from flask import request

According to python naming conventions every class name must starts with uppercase but in the case of "request" and "render_template"

line: from flask import request line: from flask import render_template

starts with lower what is the difference between other import and this above two statements or it holds any special meaning with above two statements.

Thank you..

1 Answer

Great question!

Actually, request and render_template aren't classes. They are functions that are part of flask, so they aren't capitalized.

I hope you understand now :)

Good luck! ~alex