Hello dev, In order to deploy the Django portal on your local system and test it, you will have to clone the above GitHub repository on your local machines and run a few simple steps. But make sure that you have Python 3+ installed. Once you have cloned the repository, you need to perform the following steps (you might want to have sudo or root access for some of these) -
1. Copy settings_local.py file to the django_airavata folder 2. python -m venv ENV 3. source ENV/bin/activate 4. pip install -r requirements.txt 5. python manage.py migrate 6. python manage.py runserver 7. Test on localhost:8000/ You will also need an user account on dev.seagrid.org to start with. Attaching the settings_local.py file Regards, Sneha Tilak On Tue, Aug 22, 2017 at 12:41 AM, Sneha Tilak <[email protected]> wrote: > Hello dev, > > For the past few weeks, I've been working with Marcus and Supun on > developing a Django UI for Airavata's sharing service. > > As of now, we have built a working UI which has been tested with the > dev.seagrid.org user base. > > The portal allows users to create user level groups, view groups that they > are a member of and manage groups that they own. > > We have not yet decided on the Apache repository that will be used for > this implementation. For now, you can view - > https://github.com/machristie/django-airavata-gateway for code reference. > The pull request that I've created which explains the features of the > portal can be found at - https://github.com/machristi > e/django-airavata-gateway/pull/1 > > The code still needs to be tested with the test user database that Kenneth > provided. > > Regards, > Sneha Tilak > > >
""" Override default Django settings for a particular instance. Copy this file to settings_local.py and modify as appropriate. This file will be imported into settings.py last of all so settings in this file override any defaults specified in settings.py. """ import os # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # Keycloak Configuration KEYCLOAK_CLIENT_ID = 'pga' KEYCLOAK_CLIENT_SECRET = '5d2dc66a-f54e-4fa9-b78f-80d33aa862c1' KEYCLOAK_AUTHORIZE_URL = 'https://iamdev.scigap.org/auth/realms/seagrid/protocol/openid-connect/auth' KEYCLOAK_TOKEN_URL = 'https://iamdev.scigap.org/auth/realms/seagrid/protocol/openid-connect/token' KEYCLOAK_USERINFO_URL = 'https://iamdev.scigap.org/auth/realms/seagrid/protocol/openid-connect/userinfo' KEYCLOAK_LOGOUT_URL = 'https://iamdev.scigap.org/auth/realms/seagrid/protocol/openid-connect/logout' KEYCLOAK_CA_CERTFILE = os.path.join(BASE_DIR, "django_airavata", "resources", "incommon_rsa_server_ca.pem") KEYCLOAK_VERIFY_SSL = True # Airavata API Configuration GATEWAY_ID = 'seagrid' AIRAVATA_API_HOST = 'apidev.scigap.org' AIRAVATA_API_PORT = 9930 AIRAVATA_API_SECURE = True # Sharing API Configuration SHARING_API_HOST = 'apidev.scigap.org' SHARING_API_PORT = 7878 SHARING_API_SECURE = False
