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

Running locally

Axel Hecht edited this page Jun 6, 2017 · 21 revisions

Clone the repository:

git clone -b develop https://github.com/mozilla/elmo.git
cd elmo
git submodule update --init

Create and set up the virtual environment:

virtualenv env
source env/bin/activate
pip install -r requirements/dev.txt

Configure the settings:

cp elmo/settings/local.py-dist elmo/settings/local.py
vim elmo/settings/local.py

If you have mercurial repositories from a10n, you want to set up:

cp elmo/settings/mounts_local.py-dist elmo/settings/mounts_local.py
vim elmo/settings/mounts_local.py

Setting up python dependencies, database migrations etc are done by:

./scripts/update_site.py

In the future, you can also use that command to update elmo and pull in new requirements to your local install.

When you simply want to update your database and you already have set South up, simply run migrate:

./manage.py migrate

Run the dev server:

./manage.py runserver
Clone this wiki locally