Curated repository of Case Law and Scholarship data from around the world in a Django based website.
⚠️ This project, CC’s Legal Database, is undergoing reimplementation using Django.
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
See CONTRIBUTING.md. It contains some general instructions
that should be followed when contributing to any of the Creative Commons
open-source repositories.
To follow these instructions, Python 3 and Pipenv are required.
Install dependencies with pipenv.
pipenv install --devCopy .env.template and set environment variables (like
DJANGO_DEBUG_ENABLED=True for local development and testing) and secret keys
in a .env file.
cp .env.template .envAfter setting variables run the migrations to create the database (we use Postgresql in this case).
pipenv run python manage.py migrateThe next step is to create an admin account for Django admin.
pipenv run python manage.py createsuperuserFinally you can start a development server with:
pipenv run python manage.py runserverand see a local version of the website following http://127.0.0.1:8000/ on
the browser.
After made code changes and before commit, check code style.
pipenv run black .
pipenv run flake8See deploy_to_heroku.md.
The following information is deprecated and will be removed once the production site is live.
Visit the legacy website: CC Legal Database [Beta]
Google Sheet:
Google Sheets:
- Caselaw - Cases Form Responses (for copying from, do not edit; Restricted Access)
- Caselaw - Scholarship Form Responses (for copying from, do not edit; Restricted Access)
Note: These Google Sheets are the results of people completing the Google Forms.