Last updated:
0 purchases
politicocivicelectionloader 1.0a8.dev1
politico-civic-election-loader
Ingest election metadata and results from outside sources, the POLITICO way.
Quickstart
Install the app.
$ pip install politico-civic-election-loader
Add the app to your Django project settings.
INSTALLED_APPS = [
# ...
'rest_framework',
'election_loader',
]
Migrate the database.
$ python manage.py migrate entity
Developing
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 manage.py runserver
Setting up a PostgreSQL database
Run the make command to setup a fresh database.
$ make database
Add a connection URL to example/.env.
DATABASE_URL="postgres://localhost:5432/electionloader"
Run migrations from the example app.
$ cd example
$ pipenv run python manage.py migrate
Copyright
© 2019–present POLITICO, LLC
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.