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 details)

Uploaded Source

File details

Details for the file django-councilmatic-0.1.tar.gz.

File metadata

File hashes

Hashes for django-councilmatic-0.1.tar.gz
Algorithm Hash digest
SHA256 181719b6bc131abb802e42950ecff7621542ed5a19ee67b18cdc73b8dfd62643
MD5 5f1abd22cfb6fae3db19f1e0d4e8fe4a
BLAKE2b-256 2c151a1bead837589c6c091f0641dd092e95cd105ca5fc244bde2df8882d2edc

See more details on using hashes here.

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