This is a source code for http://1000.southural.ru/
- You need python 2.7
- Prepare empty postgresql database
- Create virtualenv
virtualenv ~/virtualenv/thousands
- Clone repository
- Install dependencies
~/virtualenv/thousands/bin/python setup.py develop
- Create configuration file (see below)
- Run application.
THOUSANDS_CONF
environment variable should point to your configuration fileTHOUSANDS_CONF="~/thousands.conf" ~/virtualenv/thousands/bin/python wsgi.py
# Debug mode (should be disabled on production)
DEBUG=True
# Sessions secret key
SECRET_KEY="somesecretkey"
# Client secret for vk auth
VK_CLIENT_SECRET="vksecret"
# Client secret for southural.ru auth
SU_CLIENT_SECRET="susecret"
# Posgresql connection data
PG_DSN="host=localhost user=myuser password=mypassword dbname=mydb"