Skip to content
ClowdFlows API backend
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
conf
mothra
picklefield
services
streams
workflows
.coveragerc
.gitignore
.travis.yml
LICENSE.txt
README.md
advanced_requirements.txt
fabfile.py
manage.py
requirements.txt
server-requirements.txt
test.sh

README.md

Local installation of the Mothra project

Prerequisites

  • python >= 2.5
  • pip
  • virtualenv/wrapper (optional)
  • python headers if you're compiling Pillow from source: you need the python-dev package on debian systems

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 git@source.ijs.si:kt/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

Enable workflow packages

Uncomment the packages that you need in mothra/local_settings.py in the INSTALLED_APPS_WORKFLOWS_SUB tuple.

Sync database

Say "no" to creating a super-user when prompted. You'll create the user after migrations.

python manage.py syncdb --noinput

Migrate database

python manage.py migrate

Create super-user

python manage.py createsuperuser

Import packages

python manage.py import_all

Running

python manage.py runserver

Running with debugger

python manage.py runserver_plus

Open browser to http://127.0.0.1:8000

You can’t perform that action at this time.