Setup process - NoBodyKnowsWhatsGoingOn/prototype1 GitHub Wiki

Ubuntu

Clone this repo to your workspace (below will use prototype)

Install virtualenv

$ sudo pip install virtualenv

Create and enable virtual environment

$ cd prototype
$ virtualenv venv
$ source venv/bin/activate

Install all packages

$ cd prototype1
$ pip install -r requirements/local.txt
$ pip install django-guardian --upgrade

Change database settings in config/settings/common.py

Default is using **postgres**, to user a customized database,
create a database and user with password:

sudo su - postgres
psql
CREATE DATABASE test;
CREATE USER test WITH PASSWORD 'test';

then change settings in common.py:
'default': {
    'ENGINE': 'django.db.backends.postgresql_psycopg2',
    'NAME': "test",
    'USER': "test",
    'PASSWORD': "test",
    'HOST': 'localhost',
    'PORT': '5432',
},

Migrate and run

$ python manage.py migrate
$ python manage.py runserver
# if need to change port or run at 0.0.0.0
$ python manage.py runserver 0.0.0.0:8002