Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

Importing orgs and sources

Sri Maurya Kummamuru edited this page Jan 20, 2021 · 4 revisions
Warning: This page is going to be retired and any documentation for this will be maintained at - https://github.com/OpenConceptLab/ocl-docs/

There is a tool in the web repo that allows easy import/creation of organizations and sources:

# activate the OCL_WEB environmant
workon ocl_web
# remember to set environment variables before running any django commands
# This shell script will set them:
source ~/shell_prep.sh

manage.py create_org --username=sysadmin --csv=fixtures/orgs.csv

manage.py create_source --username=sysadmin --csv=fixtures/ocl_sources.csv

Alternatively, use the fabric command:

fab staging load_orgs_and_sources
Clone this wiki locally