Deploy your Django application with the Python InstantApp in seconds

The intended audience of this image is Python developers who want to bootstrap or test a Python application easily, in seconds.

Common packages have been installed:

  • various SCM: git, mercurial, svn
  • system wide dependencies of Python package mysql-python (libmysqlclient-dev, python-dev). You can then run pip install mysql-python.
  • system wide dependencies of Python package psycopg2 (libpq-dev, python-dev). You can then run pip install psycopg2.
  • virtualenv, so you can isolate your development environment

Also, a web environment is bootstrapped so you can deploy your web application easily.


To understand why this image is useful, let’s deploy a simple Django application.

Create and start a new instance using the Python InstantApp

Before starting, click the “Create a Server” button in the control panel.

Control Panel

You will land on the server-creation page where you can choose the Python image in the InstantApps tab for your Cloud Instance:

Control Panel

Choose the server type and click on the Create a Server button. This action starts your server.

In a few seconds, the server will be started.

Run a Django web application

This image makes it super easy to deploy your Django application, with nginx and uWSGI. The commands below can also be used to deploy another Python web application.

First of all, install Django and create your project:

$> pip install django
$> cd /var/www
$> django-admin startproject my_django_project

Then, enable the nginx template to configure the virtualhost:

$> ln -s /etc/nginx/sites-available/my_website /etc/nginx/sites-enabled/

Also, you need to enable the uWSGI template:

$> ln -s /etc/uwsgi/apps-available/my_django_project.ini /etc/uwsgi/apps-enabled/

Finally, restart services:

$> service uwsgi restart
$> service nginx restart

And you can open your browser and visit your IP to view your super new website!

IMPORTANT you may want to customize the nginx and uWSGI configuration templates we provided! We created these files only to help, because it’s always a pain to setup a web stack.

Useful links:


What's not

This image doesn’t contain databases, because we can’t really know which one you prefer.

To install MySQL, run:

$> apt-get install mysql-server

And/or PostgreSQL:

$> apt-get install postgresql


If you think something is missing in this image, or if it would have been easier if you had this or that tool, or if thisshould be configured that way instead of how it currently is, we'd love to hear from you!

You can make an issue and/or a pull request on github

Discover the Cloud That Makes Sense