Skip to content

Latest commit

 

History

History
46 lines (33 loc) · 1.28 KB

README.md

File metadata and controls

46 lines (33 loc) · 1.28 KB

Issues?

Issues with the opencivicdata.org API should be filed at the api.opencivicdata.org issue tracker

All Open Civic Data issues can be browsed and filed at the Open Civic Data JIRA instance.

Usage

Instructions assumes that you already have a database populated with scraped data.

mkvirtualenv ocdapi --python=`which python3`
workon ocdapi
export DATABASE_URL=postgis://my-user:@localhost/my-pupa-database
python manage.py migrate
python manage.py runserver

Alternatively, you can add the database connection information to ocdapi/settings_local.py:

cp ocdapi/settings_local.py.example ocdapi/settings_local.py

Then you'll need to edit ocdapi/settings_local.py to contain the so that it contains the correct connection information

To run the app:

workon ocdapi
cd <directory where you cloned the repo>
python manage.py runserver

What is this?

This repo is essentially just a Django project for deployment- actual API code is a part of several other projects: