Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Python Programming Essentials - M44 - Overview of Web Development

911 views

Published on

Slides from the training on the topic "Python Programming Essentials"

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Python Programming Essentials - M44 - Overview of Web Development

  1. 1. http://www.skillbrew.com /SkillbrewTalent brewed by the industry itself Overview of Web Development in Python Pavan Verma @YinYangPavan Founder, P3 InfoTech Solutions Pvt. Ltd. Python Programming Essentials
  2. 2. © SkillBrew http://skillbrew.com Web Development Example
  3. 3. #!/usr/bin/env python import MySQLdb print "Content-Type: text/htmln” print "<html><head><title>Books</title></head>” print "<body>“ print "<h1>Books</h1>" print "<ul>“ connection = MySQLdb.connect(user='me', passwd='letmein', db='my_db') cursor = connection.cursor() cursor.execute("SELECT name FROM books ORDER BY pub_date DESC LIMIT 10") for row in cursor.fetchall(): print "<li>%s</li>" % row[0] print "</ul>“ print "</body></html>“ connection.close()
  4. 4. © SkillBrew http://skillbrew.com Web development frameworks  Django  Flask  Pyramid
  5. 5. © SkillBrew http://skillbrew.com References  https://www.djangoproject.com/  http://flask.pocoo.org/  http://www.pylonsproject.org/

×