Skip to content
Janez edited this page Dec 11, 2013 · 20 revisions

Test

Local installation of the Mothra project

Prerequisites

  • python >= 2.5
  • pip
  • virtualenv/wrapper (optional)

Installation

Creating the environment

Create a virtual python environment for the project. If you're not using virtualenv or virtualenvwrapper you may skip this step.

For virtualenvwrapper

mkvirtualenv --no-site-packages mothra-env

For virtualenv

virtualenv --no-site-packages mothra-env
cd mothra-env
source bin/activate

Clone the code

Obtain the url to your git repository.

git clone [email protected]:mothra.git

Install requirements

cd mothra
pip install -r requirements.txt

Configure project

cp mothra/__local_settings.py mothra/local_settings.py
vi mothra/local_settings.py

Sync database

python manage.py syncdb

Migrate database

python manage.py migrate

Import packages

python manage.py auto_import_packages

Running

python manage.py runserver

Running with debugger

python manage.py runserver_plus

Open browser to http://127.0.0.1:8000