Manage government and party organizations, the POLITICO way.
Project description
politico-civic-government
Create and manage the basic structure of federal, state and local government, the POLITICO way.
Quickstart
- Install the app.
$ pip install politico-civic-government
- Add the app and dependencies to your Django project and configure any needed settings.
INSTALLED_APPS = [
# ...
'rest_framework',
'entity',
'geography',
'government',
]
Bootstrapping your database
-
Ensure
PROPUBLICA_CONGRESS_API_KEY
is exported into your environment. If you don't have an API key for the ProPublica Congress API, you can request one here. -
Bootstrap the database.
$ python manage.py bootstrap_government
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/government"
- Run migrations from the example app.
$ cd example
$ pipenv run python manage.py migrate
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file politico-civic-government-1.0a1.dev1.tar.gz
.
File metadata
- Download URL: politico-civic-government-1.0a1.dev1.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/2.7.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 882772933d69d7d992a81f2dfc50856ad019767981b3fa56b015676eaa8e7557 |
|
MD5 | 262d401f460d2a39cd7af2fbb05cb321 |
|
BLAKE2b-256 | 0d0790b76fc02d806eb6de3ff0a239089dae25456901e01b323adaa72904eb62 |
File details
Details for the file politico_civic_government-1.0a1.dev1-py2-none-any.whl
.
File metadata
- Download URL: politico_civic_government-1.0a1.dev1-py2-none-any.whl
- Upload date:
- Size: 25.6 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/2.7.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b805e98c385eb2e2de566075ad488b3ec87ff61911f8ae933eb57a6223adf23 |
|
MD5 | 553fbcdc1d0ca416c867fa3dabb0bbcf |
|
BLAKE2b-256 | 653b161733fbd4e4be53d7b2cd5df1beaf50d4095364a15a21c46962f1f92887 |