OpenMalaria portal is a user-friendly web interface for OpenMalaria model. User can create simulation, define environment and explore effect of interventions (drugs, spraying, bednets) on malaria transmission levels. Model can be executed from the web interface using our high-performance cluster. Model output can be easily visualized or downloaded for further processing.
- Django 1.11
- Python 3.5
- PostgreSQL 9.4
- Apache 2.4
- RedHat 7 or CentOS 7
- Install apache, postgresql, python 3.5 and mod_wsgi 3.5, system libraries
You can use install_centos.sh script to install most of dependencies
- Clone repository into /opt/portal/om.vecnet.org
git clone https://github.com/vecnet/om /opt/portal/om.vecnet.org
- Create settings_local.py in website/settings directory. Example:
DEBUG = False
SECRET_KEY = 'z5azf=qbb%lmzd^xf9#g5bqtv30e%12P!t(&!0hkpzp0jc8q5$'
DATABASES = {
'default': {
'ENGINE': "django.db.backends.postgresql_psycopg2",
'NAME': "om",
'USER': "om",
'PASSWORD': "om",
'HOST': "127.0.0.1",
'PORT': "5432",
}
}
ADMINS = [
('Alex', 'avyushko@nd.edu'),
]
ALLOWED_HOSTS = [
'om.vecnet.org',
]
-
Setup cron jobs:
python manage.py crontab add
-
Create database structures. Note that your database user must have "CREATE TABLE" permission
./manage.py migrate
-
Create an admin user
./manage.py createsuperuser
-
Install django-auth-pubtkt package
pip install django-auth-pubtkt
-
Copy public key for validating pubtkt tickets to /etc/httpd/conf/sso/tkt_pubkey_dsa.pem