Skip to content
fg edited this page Nov 10, 2014 · 3 revisions

Setup

Install mongodb:

    sudo apt-get install mongodb
    sudo brew install mongodb

Start mongodb

Create a virtual env:

    virtualenv arguman
    source arguman/bin/activate

Clone the repository and install requirements:

    cd arguman
    git clone https:/arguman/arguman.org.git arguman
    pip install -r arguman/requirements.pip

Create a file that named settings_local.py Configure the database and secret key.

    cd arguman/web/
    vi settings_local.py

The example of configuration:

    DATABASES = {
        'default': {
            'ENGINE': 'django.db.backends.sqlite3',
            'NAME': 'data',
            'USER': '',
            'PASSWORD': '',
            'HOST': '',
            'PORT': '',
        }
    }

    SECRET_KEY = '<SECRET-KEY>'

And run the following commands:

    # assuming that you are in arguman/web/
    python manage.py migrate
    python manage.py runserver

That's all. You can access to project from http://127.0.0.1:8000

Clone this wiki locally