Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
docs
static_pages
README.md
manage.py
requirements.txt
settings.py
urls.py
wsgi.py

README.md

BallotAPI main website

This is the code that runs https://ballotapi.com/

Installation

Here is how to run this website locally (for development, etc.).

  1. Clone this repo.
    git clone https://github.com/sfbrigade/ballotapi

  2. Create a Python 3 virtual environment.
    virtualenv -p python3 ballotapi-website-venv
    source ballotapi-website-venv/bin/activate

  3. Install the website dependencies.
    cd ballotapi/website/
    pip install -r requirements.txt

  4. Start a development webserver.
    python3 manage.py runserver

  5. Done! This website should be running on http://localhost:8000/

Upgrading

  1. Update the website dependencies.
    pip install --upgrade -r requirements.txt

Testing

TODO