Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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