META Trial EDC (http://www.isrctn.com/ISRCTN76157257)
Project description
meta-edc
Metformin Treatment for Diabetes Prevention in Africa: META Trial
TASO, MRC/UVRI/LSHTM, NIMR – TZ and Liverpool School of Tropical Medicine (ISRCTN76157257)
Installation
To setup and run a test server locally
You’ll need mysql. Create the database
mysql -Bse 'create database meta character set utf8;'
Create a virtualenv, clone the main repo and checkout master
conda create -n edc python=3.7
conda activate edc
Clone the main repo and checkout master
mkdir ~/projects
cd projects
https://github.com/meta-trial/meta-edc.git
cd ~/projects/meta-edc
git checkout master
Copy the test environment file
cd ~/projects/meta-edc
git checkout master
cp .env.tests .env
Edit the environment file (.env) to include your mysql password in the DATABASE_URL.
# look for and update this line
DATABASE_URL=mysql://user:password@127.0.0.1:3306/meta
Continue with the installation
cd ~/projects/meta-edc
git checkout master
pip install .
pip install -U -r requirements/stable-v0.1.10.txt
python manage.py migrate
python manage.py import_randomization_list
python manage.py import_holidays
Create a user and start up runserver
cd ~/projects/meta-edc
git checkout master
python manage.py createsuperuser
python manage.py runserver
Login:
localhost:8000
Once logged in, go to you user account and update your group memberships. As a power user add yourself to the following
ACCOUNT_MANAGER
ADMINISTRATION
AE
AE_REVIEW
CLINIC
DATA_MANAGER
DATA_QUERY
EVERYONE
EXPORT
LAB
LAB_VIEW
PHARMACY
PII
RANDO
REVIEW
SCREENING
TMG
UNBLINDING_REQUESTORS
UNBLINDING_REVIEWERS
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for meta_edc-0.1.19-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f488c36bd0cc31c70fac6f699b77add6f1daa0c30ad54b7d0ffb73937ec7efe9 |
|
MD5 | 6b95bbd8ae7e14c4cd42692c2b36bca3 |
|
BLAKE2b-256 | c1b7c6d1c30585c883b7e74de9517234709868fdd2f1447496e1f4d4305d3449 |