Skip to main content

Core functions for councilmatic.org family

Project description

Reusable Django app providing the core functions for Councilmatic

Setup

Install OS level dependencies:

  • Python 3.4

  • PostgreSQL 9.4 +

Install app requirements

We recommend using virtualenv and virtualenvwrapper for working in a virtualized development environment. Read how to set up virtualenv.

Once you have virtualenvwrapper set up,

mkvirtualenv chi-councilmatic
git clone https://github.com/datamade/chi-councilmatic.git
cd chi-councilmatic
pip install -r requirements.txt

Afterwards, whenever you want to use this virtual environment to work on chi-councilmatic, run workon chi-councilmatic

Create your settings file

cp councilmatic/settings_local.py.example councilmatic/settings_local.py

Then edit councilmatic/settings_local.py: - USER should be your username

Setup your database

Before we can run the website, we need to create a database.

createdb chi_councilmatic

Then, run migrations

python manage.py migrate --no-initial-data

Create an admin user - set a username & password when prompted

python manage.py createsuperuser

Importing data from the open civic data api

Run the loaddata management command. This will take a few minutes.

python manage.py loaddata

Running Chicago Councilmatic locally

python manage.py runserver

navigate to http://localhost:8000/

Team

  • David Moore - project manager

  • Forest Gregg - Open Civic Data (OCD) and Legistar scraping

  • Cathy Deng - data models and loading

  • Derek Eder - front end

  • Eric van Zanten - search and dev ops

Errors / Bugs

If something is not behaving intuitively, it is a bug, and should be reported. Report it here: https://github.com/datamade/chi-councilmatic/issues

Note on Patches/Pull Requests

  • Fork the project.

  • Make your feature addition or bug fix.

  • Commit, do not mess with rakefile, version, or history.

  • Send a pull request. Bonus points for topic branches.

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-councilmatic-0.1.tar.gz (6.6 MB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page