Python Hosting in the Jelastic Cloud: Get Your DjangoCMS Up and Running

By | August 12, 2014


From the very beginning, Jelastic was architectured as a polyglot platform. We started with Java, then added PHP and Ruby but we didn’t stop at that. Month by month, our developers keep working on implementing new programming languages. Recently, Python has been added to our language family. Today we’d like to pay more attention to Python hosting in the Jelastic Cloud and provide a live sample of DjangoCMS (Python application) deployment.

NOTE: Python availability in the Jelastic Cloud can be configured by hosting providers via JCA (admin panel). In order to enable Python support for your users follow the instructions.

Jelastic Python Specifications

Currently we support Apache application server for hosting Python applications. It is implemented by means of Apache + mod_wsgi bundle.

In Jelastic, there are three Python versions currently available:

  • 2.7.15
  • 3.4.9
  • 3.5.6
  • 3.6.7
  • 3.7.1

All of these versions are pre-installed in each Python container. A user can choose the required version during environment creation or change it afterwards via the environment topology wizard. The workflow is described in the Python Versions document.

python cloud

Application Deploy

You can easily deploy an already packaged Python application:

Note: that you can deploy just one Python app to the environment, so it will be in the ROOT context by default.

Also you can use the SSH feature for building and deploying a new custom application.


In order to deploy your own package, its root should contain the following files:

  • requirements.txt file with the names of all Python modules your application requires
  • application file with the entry point script for running your application using Apache mod_wsgi considering your virtual environment

Packages/Modules Management

In order to successfully deploy and run a Python application, some additional modules or other packages may be required to be installed. The management of the required software packages is provided by pip, popular Python package management system.

There are two ways to download and install necessary Python modules:

  • write a list of required modules in the requirements.txt file, located in the root of your project package. It will be read by a deployment script in order to automatically install these modules with the help of pip.
  • connect to your container via SSH and operate with the following commands:

pip install {package_name} – to install a necessary module
pip uninstall {package_name} – to remove previously installed module
pip install –upgrade{package_name} – to update the specified module to the latest version
pip install -r requirements.txt – to install all the modules, listed in the requirements.txt file
pip list – to see the set of already installed modules

Using additional commands and their attributes you can also specify the preferred module version, configure resolving of relative dependencies, show details on installed modules or search for the necessary ones in the PiPI packages repository. To find out more details on the commands you can use, navigate to the pip user guide.

Logs Monitoring

Jelastic makes the following log files available for Python WSGI:

  • access_log-{date}
  • error_log-{date}

These files can be seen by clicking on the Log button next to the Apache application server in the environment. Here, you can monitor all the actions performed within your Python environment.

Available Frameworks

Currently Jelastic supports the following Python frameworks:

  • Django
  • Flask

You can deploy different Python applications based on these frameworks. Read our documentation in order to set your own Quokka CMS application (Flask-powered app) in the Jelastic Cloud. And below, we will describe how to deploy and run DjangoCMS.

DjangoCMS Deployment

You can automatically get a preconfigured ready-to-work Django CMS instance up and running within minutes using Jelastic Marketplace.

Tip: If you don’t have an account, you can automatically get it and, simultaneously, initiate Django CMS solution installation by clicking the button below and fulfilling the form within the opened page.cms installation guide

1. Log in to your Jelastic account and click the Marketplace button at the top of the dashboard.cms manual installation

2. Search for the DjangoCMS solution in the opened window.cms automatic installation

Hover over the located package and click Install.

3. Within the appeared installation frame, you can adjust the following fields:

  • Environment – set your environment name
  • Display Name – define a preferable alias
  • Region – select the environment region (if multiple are available)

django cms tutorial

Proceed with the Install button.

4. That’s it! In just a few minutes your Django CMS application will be installed.python hosting

Use the info within the pop-up to access your Django CMS home and admin panel pages.

You can deploy Django CMS manually following the linked step-by-step instruction to take the complete control over the process.


We are very excited to provide you Python hosting in Jelastic, with the features and flexibility to host and scale complex Python applications. We’ve made it easier than ever to develop and run Python apps, without vendor lock-in, in the data center of your choice, worldwide. In the nearest future we are going to enhance our documentation in order to provide more details on Python settings in the Jelastic Cloud. So stay tuned! Start now and try the beneficial features of Python hosting in the Jelastic Cloud.


Subscribe to get the latest updates