flask.pdf - CS 2316 Data Manipulation for Engineers Flask...

This preview shows page 1 - 4 out of 12 pages.

CS 2316 Data Manipulation for Engineers Flask Christopher Simpkins [email protected] Chris Simpkins (Georgia Tech) CS 2316 Data Manipulation for Engineers Flask 1 / 12
Image of page 1

Subscribe to view the full document.

Web Application Frameworks Python’s built-in web server is nice, but serious web development is done using a web framework. Web frameworks typically provide: Routes, which map URLs to server files or Python code Templates, which dynamically insert server-side data into pages of HTML Authentication and authorization of user names, passwords, permissions Sessions, which keep track of a user during a single visit to a site and more ... We’ll use a simple Python web framework called Flask Chris Simpkins (Georgia Tech) CS 2316 Data Manipulation for Engineers Flask 2 / 12
Image of page 2
Installing Flask First, you need the pip utility. Go to and follow the instructions. Note: on Unix (e.g., Linux, Mac OS X) remember to use python3 Then do: $ pip3 install flask On Windows it’s just pip , not pip3 . If installation is successful, this should work: $ python3 Python 3.4.0 (v3.4.0:04f714765c13, Mar 15 2014, 23:02:41) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help" , "copyright" , "credits" or "license" for more information. >>> import flask Now we’re ready to create a Flask web application. Chris Simpkins (Georgia Tech) CS 2316 Data Manipulation for Engineers Flask 3 / 12
Image of page 3

Subscribe to view the full document.

Hello, Flask!
Image of page 4
You've reached the end of this preview.
  • Spring '12
  • summet

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern