Clone this repo:
  1. e201154 Fixing linting errors by Marcus Christie · 6 days ago master
  2. 25bcc10 Label walltime units by Marcus Christie · 6 days ago
  3. 50b3041 AIRAVATA-3081 Move Uppy dependencies to common package by Marcus Christie · 7 days ago
  4. 88f974f AIRAVATA-3221 Keep InputFileSelector in UI until uploading finishes by Marcus Christie · 8 days ago
  5. d7b576e AIRAVATA-3081 Factor out common tus upload handling code by Marcus Christie · 12 days ago

Apache Airavata Django Portal

Build Status Build Status

The Airavata Django Portal is a web interface to the Apache Airavata API implemented using the Django web framework. The intention is that the Airavata Django Portal can be used as is for a full featured web based science gateway but it can also be customized through various plugins to add more domain specific functionality as needed.

Getting Started

The following steps will help you quickly get started with running the Airavata Django Portal locally. This will allow you to try it out and can also be used as a development environment.

The Airavata Django Portal is developed with Python 3.6 but should also work with 3.4 and 3.5. You'll need one of these versions installed locally.

You'll also need npm 6.4.1+ to build the JavaScript frontend code. Please install the most recent LTS version of Node.js.

  1. Checkout this project and create a virtual environment.

    git clone
    cd airavata-django-portal
    python3 -m venv venv
    source venv/bin/activate
    pip install -r requirements.txt
    • macOS note: to install the MySQL dependencies you need to have the MySQL development headers and libraries installed. Also, on macOS you need to have openssl installed. See the mysqlclient-python installation notes for more details.
  2. Create a local settings file. Copy django_airavata/ to django_airavata/ and edit the contents to match your Keycloak and Airavata server deployments.

    cp django_airavata/ django_airavata/
  3. Run Django migrations

    python migrate
  4. Build the JavaScript sources. There are a few JavaScript packages in the source tree, colocated with the Django apps in which they are used. The script will build them all.

  5. Load the default Wagtail CMS pages.

    python load_default_gateway
  6. Run the server

    python runserver
    • Note: if you want to use OpenID Connect authentication from the Django Portal when running it locally, you'll need to first set the following environment to allow OAuth over insecure HTTP:

  7. Point your browser to http://localhost:8000.


Documentation currently is available at (built from the ‘docs’ directory).

To build the documentation locally, first set up a development environment, then run the following in the root of the project:

mkdocs serve


Please send feedback to the mailing list at If you encounter bugs or would like to request a new feature you can do so in the Airavata Jira project (just select the Django Portal component when you make your issue).


For general information on how to contribute, please see the Get Involved section of the Apache Airavata website.

Setting up development environment

Run pip install -r requirements-dev.txt to install development and testing libraries.

Use a code editor that integrates with editorconfig and flake8. I also recommend autopep8 for automatically formatting code to follow the PEP8 guidelines.


The Apache Airavata Django Portal is licensed under the Apache 2.0 license. For more information see the LICENSE file.