Development and Deployment with WSGI in Django

Slides:



Advertisements
Similar presentations
Other Web Application Development Technologies. PHP.
Advertisements

WEB SERVICES. FIRST AND FOREMOST - LINKS Tomcat AXIS2 -
/ department of mathematics and computer sciencedepartment of mathematics and computer science / architecture of information systems.
Introduction to Maven 2.0 An open source build tool for Enterprise Java projects Mahen Goonewardene.
Presenter: James Huang Date: Sept. 29,  HTTP and WWW  Bottle Web Framework  Request Routing  Sending Static Files  Handling HTML  HTTP Errors.
© Copyright 2012 STI INNSBRUCK Apache Lucene Ioan Toma based on slides from Aaron Bannert
Fabian Vilers Hands on ASP.NET MVC.
COEN 445 Communication Networks and Protocols Lab 4
Copyright 2004 Monash University IMS5401 Web-based Systems Development Topic 2: Elements of the Web (g) Interactivity.
1 Bringing P2P to the Web: Security and Privacy in the Firecoral Network Jeff Terrace Harold Laidlaw Hao Eric Liu Sean Stern Michael Freedman.
Creating WordPress Websites. Creating a site on your computer Local server Local WordPress installation Setting Up Dreamweaver.
Definitions, Definitions, Definitions Lead to Understanding.
How Beacon Works David Erickson July The Bundle Basic Building Block JAR (zipfile) May Contain – Metadata* META-INF/MANIFEST.MF – Java Classes –
Configuring PHP on IIS7 Making your application rock on IIS7 Taking advantage of the Windows platform Q&A at Open Space.
Implementing search with free software An introduction to Solr By Mick England.
“I drink my WSGI clear” A barebones introduction to Python Web Programming. 3/14/2011.
Struts 2.0 an Overview ( )
Web Development Methodologies Yuan Wang(yw2326). Basic Concepts Browser/Server (B/S) Structure Keywords: Browser, Server Examples: Websites Client/Server.
W3af LUCA ALEXANDRA ADELA – MISS 1. w3af  Web Application Attack and Audit Framework  Secures web applications by finding and exploiting web application.
Danielle Baldwin, ITS Web Services CMS Administrator Application Overview and Joomla 1.5 RC 1 Highlights.
Putting What We Learned Into Context – WSGI and Web Frameworks A290/A590, Fall /16/2014.
The RunTimeTester - where to now? Eric NZUOBONTANE Peter SHERWOOD Brinick SIMMONS 29 th July 2004.
How P3P Works Lorrie Faith Cranor P3P Specification Working Group Chair AT&T Labs-Research 4 February 2002
Asterisk based real-time social chat Advisor : Lian-Jou Tsai Student : Jhe-Yu Wu.
CSC 2720 Building Web Applications Server-side Scripting with PHP.
Apache JMeter By Lamiya Qasim. Apache JMeter Tool for load test functional behavior and measure performance. Questions: Does JMeter offers support for.
COWS CEDA OGC Web Services Framework Stephen Pascoe.
AxKit A member of the Apache XML project Ryan Maslyn Kyle Bechtel.
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
Philip Repsher October 29 th, 2008 Or Maybe November 3 rd, 2008.
Virtual techdays INDIA │ 9-11 February 2011 virtual techdays Data grail: Data Market on Windows Azure Sudhindra Kovalam │ Developer, Icertis Inc.
MVC WITH CODEIGNITER Presented By Bhanu Priya.
Asstt. Prof Sonia Sharma Computer Dept 1 HTML ( Hypertext MarkUP Language ) HTML is the lingua franca for publishing hypertext on the World Wide Web.
WHAT IS PHP FRAMEWORK? Set of Classes and Functions(Methods) Design for the development of web applications Provide basic structure Rapid application development(RAD)
Thomas Deml Principal Program Manager Microsoft Corporation SESSION CODE: WSV317.
Introduction to Server Side Includes Fort Collins, CO Copyright © XTR Systems, LLC Introduction to Server Side Includes (SSI) Instructor: Joseph DiVerdi,
Introduction to JavaScript MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/2/2016.
2 Microsoft Confidential3 The Microsoft Web Platform is the software of choice when building web solutions or applications for your business, large.
Basic Concepts for Python Web Development. What Does Make Python Different Batter Software QA Developer Productivity Advance Program Portability Support.
Geant4 on Web for Education, … - recent updates - Koichi Murakami (KEK/CRC) Koichi MurakamiGeant4 FFJPL Meeting (02/Sep/2008)1.
Esri UC 2014 | Technical Workshop | Administering ArcGIS for Server with Python Jon Bodamer.
1 RIC 2009 Symbolic Nuclear Analysis Package - SNAP version 1.0: Features and Applications Chester Gingrich RES/DSA/CDB 3/12/09.
Internet/Web Databases
ENOG13 Saint Petersburg Diego Luis Neto SW NL-ix.
UKNOF37 Manchester Diego Luis Neto SW NL-ix.
Servlets.
Introduction to gathering and analyzing data via APIs Gus Cavanaugh
Web Development Web Servers.
z/Ware 2.0 Technical Overview
How P3P Works Lorrie Faith Cranor P3P Specification Working Group Chair AT&T Labs-Research 4 February
RONOG 4 - Bucharest Diego Luis Neto SW NL-ix.
Next Generation SSIS Tasks and data Connection Series
Processes The most important processes used in Web-based systems and their internal organization.
PHP / MySQL Introduction
YQL Kevin Murphy CMPS 183.
Topics web applications Practical Biocomputing Week 12.
MVC Framework, in general.
Web Development Using ASP .NET
GIFT / Fiscal Data Package Iteration 3
REST.
Multimedia and Networks
A Match Made In (Ethereal) Heaven
Google App Engine Ying Zou 01/24/2016.
UKNOF38 - Sheffield Diego Luis Neto SW NL-ix.
Lecture 5: Functions and Parameters
Robotics Website By Andy Kelley.
International Living Atlases Workshop Madrid 2018
What’s new ArcGIS 10.1 for Server The Server Framework
Web Application Development Using PHP
Intro to Web Services Consuming the Web.
Presentation transcript:

Development and Deployment with WSGI in Django Django User Group in London (DJUGL), February 2010. By Gustavo Narea.

Who's speaking? Gustavo. Works for Web 2.0 company. Repoze and TurboGears core developer. Believes in WSGI above all else.

What's WSGI? Python “standard”. Like CGI, at the Python level. Useful for development too. Makes possible framework-independent components. Established for more than 6 years.

Where is Django?

twod.wsgi One goal: Improve Django's WSGI support. Won't break existing applications. Stable, no known bugs. First release very soon. Hopefully merged into a future Django release. Testers and contributors are welcome!

Things you can do now

Use PasteDeploy config files Suitable for configuration, unlike Python code. Complement or replace (your choice) settings.py Widely used. INI format. Extremely flexible. Wave goodbye to DJANGO_SETTINGS_MODULE!

Run initialisation code One-off code when the application has started up. Before any import from Django or your application. Or right after your application has been set up.

Use WSGI middleware Not only for deployment. Can be configured in INI files or Python code.

Get a better development server manage runserver is OK, but Paste's rocks. It's multi-threaded. Can serve your application in different modes. Can serve your media. Often used in deployment too!

Mount applications Serve Trac as a Django view. Or the PHP-powered WordPress! Filter the input they get. Filter the response they return. Mount them on-the-fly. Single Sign-On for free!

Write functional tests with WebTest More reliable replication of production environment. More features. Can parse HTML, XML and JSON responses. Can fill out forms and submit them. twod.wsgi has a Nose plugin for WSGIfied Django applications.

Get more from requests Request objects now have way more members. They come from WebOb. HttpRequest members still available. A real proxy to the WSGI environment. Short-cuts to standard HTTP request headers.

Expose the URL arguments /posts/hello-world has one routing argument (e.g., post_slug=”hello-world”). Dispatchers in Web frameworks should make them available in the request. Django does thanks to twod.wsgi. Useful for generic, 3rd party libraries.

Let's get practical

What's next? Check if there's anything for you in the Paste project (pythonpaste.org). Or Repoze (repoze.org). Spread the word about it!

Thank you! Slides will be published on http://dev.2degreesnetwork.com/ twod.wsgi Web site: http://packages.python.org/twod.wsgi/ Development Web site: http://bitbucket.org/2degrees/twod.wsgi/ Follow @2degrees on identi.ca.