Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Python

Gustavo Winter
PLUS
Gustavo Winter
Courses Plus Student 27,382 Points

How i add python to my html ?

If it is using Django, i apologize for this ask, but i dont get there yet. I really want to clear this doubt.

thanks

1 Answer

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there! Besides being able to write stand-alone apps in Python, it is also a "back end" language. What this means is that Python can be used on the server side to determine what HTML files should be served up to the client. Both Flask and Django are Python frameworks used for just this purpose.

For example, let's say your site has a basic subscription and a pro subscription. Python on the backend can authenticate the user, determine which kind of account that user has, and then serve up the HTML page it needs to for that user. But Python will not be directly in your HTML file. Rather, it programmatically determines which HTML should be served up and how it should be formatted.

Hope this helps! :sparkles:

Gustavo Winter
Gustavo Winter
Courses Plus Student 27,382 Points

So, if i have a section in my html site, and i want to send a e-mail to de admin of the site with a feedback from the user. I will need to use Django or Flask? Right?