propublica / Capitol-Words

Scraping, parsing and indexing the daily Congressional Record to support phrase search over time, and by legislator and date
BSD 3-Clause "New" or "Revised" License
121 stars 34 forks source link

Fix settings.example.py #87

Closed AlJohri closed 7 years ago

AlJohri commented 10 years ago

Add some variables to settings.example.py that are expected throughout the code.

CWOD_HOME = "" # directory where data is downloaded, parsed, and ingested from
TMP_DIR = 'tmp/'
DB_PARAMS = ["localhost","username","password","capitolwords"]
DB_PATH = "" # path to api/capitolwords sqlite database
BIOGUIDE_LOOKUP_PATH = "" # path to api/bioguide_lookup.csv

I found that the code wouldn't run until these variables were at least defined. In addition, because these files are symlinked (as per the README) to the various subdirectories I couldn't come up with a single snippet of code that could properly set CWOD_HOME, DB_PATH, and BIOGUIDE_LOOK_PATH depending on where the file was being called referred to from. This is why I just left them as empty quotes and put a comment as to what it should be.