-
-
Notifications
You must be signed in to change notification settings - Fork 149
Setup
fg edited this page Nov 10, 2014
·
3 revisions
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://github.com/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