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.
Gustavo WinterCourses 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.
Jennifer NordellTreehouse 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!