#Lobbying.ph-django This is the active repo for Lobbying.ph, a tool to help journalists and citizens better understand and access Philadelphia lobbying reports.
The original Sinatra/Ruby version of the site (https://github.com/caseypt/lobbying.ph) was used as a prototype and is no longer maintained.
##Dependencies
- Python (see requirements.txt for project Python dependencies)
- VirtualEnv
- PostgreSQL
- Memcached
- Libmemcached
- ElasticSearch
- Compass
- Sass
##Getting Started
- Install the external dependencies listed above. I'd recommend using homebrew
- Make sure the required services are running (PostgreSQL, Memcached, Libmemcached ElasticSearch, Compass).
- Create a virtual environment:
virtualenv venv - Activate the virtual enviornment:
$ source venv/bin/activate - Install the project dependencies:
$ pip install -f requirements.txt - Set the following environment variables for use by Haystack:
BONSAI_INDEXto your ElasticSearch index nameBONSAI_URLto your ElasticSearch server URL, which defaults tohttp://127.0.0.1:8000/
- Create the project database:
$ createdb lobbying - Create the project database tables:
$ python manage.py syncdb --settings=project.settings_dev - Create the
lobbyingphapp tables:python manage.py migrate lobbyingph --settings=project.settings_dev - Start the Django server:
$ python manage.py runserver --settings=project.settings_dev - Go to
http://localhost:8000to view the site