Month: April 2013

Using Virtual environment to build your python application for Azure

Python stack on Windows Azure is bare bones  and may not include all the libraries that your application may require. The best way to build your application for Azure is setting up a virtual environment for your application that you can deploy to Windows Azure website . Here is what you need to do to setup your own development environment for your application :

Install virtualenv

If you don’t have virutalenv installed , you can install it using PIP or Easy install tools . Make sure you have python setup tools installed for Python 2.7.x . Run the following command to install virtualenv

c:\python27>Scripts\easy_install virtualenv

or

c:\python27>Scripts\pip install virtualenv

Continue reading “Using Virtual environment to build your python application for Azure”

Build your Flask application on Windows Azure Websites

Windows Azure websites helps you create highly scalable websites with fast deployment to the Windows Azure .  Since Python stack is available on Windows Azure websites , I have been excited to build Python applications on Windows Azure Websites .

Flask is popular python framework based on Werkzeug, Jinja 2 . In this tutorial I will show you how to create a Hello world Flask application on Windows Azure .

Create a folder for your application if you haven’t already  , say ‘myflasksite‘  and include the source for the following libraries :

Extract the TAR packages for the above libraries to your application folder . Here is how the directory structure would look like

Continue reading “Build your Flask application on Windows Azure Websites”

Deconstructed View of an application package used by Web Application Gallery

To help you understand what a web deployable package for Web Application Gallery is , I have deconstructed the contents of the package  in this post :

#1 : manifest.xml (required): 

This file is used to

  • set up the ACLs for your application
  • content path for your application
  • may include any references to SQL Server or MySQL scripts
  • may include “alias” provider that allows you to “add”  a new file to the code base during deployment or “rename” an existing file during deployment

Continue reading “Deconstructed View of an application package used by Web Application Gallery”