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-devpackage 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-envFor virtualenv
virtualenv --no-site-packages mothra-env
cd mothra-env
source bin/activateClone the code
Obtain the url to your git repository.
git clone git@github.com:xflows/clowdflows.gitInstall requirements
cd mothra
pip install -r requirements.txtConfigure project
cp mothra/__local_settings.py mothra/local_settings.py
vi mothra/local_settings.pyEnable 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 --noinputMigrate database
python manage.py migrateCreate super-user
python manage.py createsuperuserImport packages
python manage.py import_allRunning
python manage.py runserverRunning with debugger
python manage.py runserver_plusOpen browser to http://127.0.0.1:8000