Name: elex-admin
Owner: NYT Newsroom Developers
Description: A CRUD admin for editing AP election results data, including names and race calls.
Created: 2015-12-15 14:50:50.0
Updated: 2016-11-09 19:45:07.0
Pushed: 2017-06-08 21:36:39.0
Homepage: null
Size: 165
Language: HTML
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
elex-admin
is a lightweight, Flask-based CRUD admin for election results data loaded with elex-loader and elex.
clone git@github.com:newsdev/elex-admin.git && cd elex-admin
rtualenv elex-admin
install -r py3.requirements.txt
elex_admin/
. Name it with your new racedate.http-socket
port by 1 (eg. 127.0.0.1:8047
-> 127.0.0.1:8048
)elex_admin/races.conf
: Duplicate the last location {}
object and change the racedate and proxy_pass
port number to match the settings in the .ini
file you just made.on elex-admin
e:stg master pull
e:prd master pull
You'll then want to go run the elex-dotfiles commands to turn on the new racedate in the admin.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.
rt RACEDATE=2016-02-01
rt 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.
on -m elex_admin.app