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

Which server python web app uses to run locally on my computer?

Kenneth Love Hello sir, i learned to make python web app from your videos on flask basics we run our application through cmd and define the port in the script but i'm not able to understand which server does the my application is using for example i'm from php background we install wamp or xampp for running php script on web to test our web app locally the xampp includes apache server that is using in my application but which server i'm or my python application is using for running in my local computer ???????

2 Answers

Kenneth Love
STAFF
Kenneth Love
Treehouse Guest Teacher

Flask is running a WSGI process, if I remember correctly, named Werkzeug. Basically, it brings its own server with it for development purposes. If you were deploying this to the internet, you'd want to use something like Gunicorn or uWSGI and a server like Nginx or Apache with mod_wsgi.

I didn't get it properly but thank you for your answer I will more thank full to you if you will explain it a little bit more please.

Kenneth Love
Kenneth Love
Treehouse Guest Teacher

Maybe you can tell me a bit more about what questions you have?

Python runs from a command line. Just download Python for you OS.