A CRUD admin for editing AP election results data, including names and race calls.
HTML Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
elex_admin
.gitignore
README.md
fabfile.py
py2.requirements.txt
py3.requirements.txt

README.md

logo

elex-admin is a lightweight, Flask-based CRUD admin for election results data loaded with elex-loader and elex.

Getting started

  • Set up software and environment.
git clone git@github.com:newsdev/elex-admin.git && cd elex-admin
mkvirtualenv elex-admin
pip install -r requirements.txt
  • This project requires Adcom for its theme. You can deploy Adcom to a CDN like Amazon S3 and then specify the root of the URL in an environment variable.
export RACEDATE=2016-02-01
export ELEX_ADMIN_CDN_URL=http://my.cdn.url.com/cdn
  • Run bootstrap.sh, init.sh and update.sh from elex-loader.

  • Run python elex_admin/initialize_racedate.py to set up candidates and races for overrides.

  • Run the admin.

python -m elex_admin.app

See all races for a racedate

screenshot

Edit candidate information and make race calls

screenshot