DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
  1. DZone
  2. Coding
  3. Frameworks
  4. Building a Web Server with Python and Flask Tutorial - Parts 1 & 2

Building a Web Server with Python and Flask Tutorial - Parts 1 & 2

Chris Smith user avatar by
Chris Smith
·
Mar. 07, 12 · Interview
Like (0)
Save
Tweet
Share
11.11K Views

Join the DZone community and get the full member experience.

Join For Free
calicoJake has put together some great tutorial videos for creating a web server using Python and Flask.  Here are the first two videos in the series, first a Hello World introduction, and then a more in depth video where calicoJake creates a page that allows arbitrary executions of Python expressions.


Python/Flask Tutorial Part 1





This is the first video in a series to show how to create a web server using Python. If you like this video and want to see more, thumbs up, favorite, comment or subscribe. Thanks!

Software required:
* Python 2.7 - http://www.python.org
* Flask - http://flask.pocoo.org/

Tools I use:
* Komodo edit
* Chrome browser

Final source: http://dl.dropbox.com/u/48898/youtube%20files/ep1/demo.py


Python/Flask Tutorial Part 2





In episode 2 of my series on creating a web server using Python and Flask I create a page which allows arbitrary execution of Python expressions. I start using Jinja2 templates instead of coding HTML directly in Python, and also use message flashing to send session data.

Let me know what you think in the comments. Like and subscribe if you want to see more!

Code for this episode: http://dl.dropbox.com/u/48898/youtube%20files/ep2/demo.zip

Web server Python (language) Flask (web framework)

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Choosing the Right Framework for Your Project
  • Using GPT-3 in Our Applications
  • Introduction to Container Orchestration
  • Test Execution Tutorial: A Comprehensive Guide With Examples and Best Practices

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: