Skip to main content

Ingest election metadata and results from outside sources, the POLITICO way.

Project description



Ingest election metadata and results from outside sources, the POLITICO way.


  1. Install the app.
$ pip install politico-civic-election-loader
  1. Add the app to your Django project settings.
    # ...
  1. Migrate the database.
$ python migrate entity


Running a development server

Move into the example directory, install dependencies and run the development server with pipenv.

$ cd example
$ pipenv install
$ pipenv run python runserver

Setting up a PostgreSQL database

  1. Run the make command to setup a fresh database.
$ make database
  1. Add a connection URL to example/.env.
  1. Run migrations from the example app.
$ cd example
$ pipenv run python migrate


© 2019–present POLITICO, LLC

Project details

Download files

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

Files for politico-civic-election-loader, version 1.0a5.dev2
Filename, size File type Python version Upload date Hashes
Filename, size politico_civic_election_loader-1.0a5.dev2-py2-none-any.whl (22.3 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size politico-civic-election-loader-1.0a5.dev2.tar.gz (12.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page