README.md 1022 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
# Mothra Django 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 ####
```bash
mkvirtualenv --no-site-packages mothra-env
```

#### For virtualenv ####
```bash
virtualenv --no-site-packages mothra-env
cd mothra-env
source bin/activate
```

### Clone the code ###
Obtain the url to your git repository.

```bash
29
git clone git@workflow.ijs.si:mothra.git
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
```

### Install requirements ###
```bash
cd mothra
pip install -r requirements.txt
```

### Configure project ###
```bash
cp mothra/__local_settings.py mothra/local_settings.py
vi mothra/local_settings.py
```

### Sync database ###
```bash
python manage.py syncdb
```

Janez K's avatar
Janez K committed
49 50 51 52 53
### Migrate database ###
```bash
python manage.py migrate
```

54 55 56 57 58 59
## Running ##
```bash
python manage.py runserver
```

Open browser to http://127.0.0.1:8000