Share your Oscar predictions.
This is a Django codebase. Check out the Django docs for general technical documentation.
The Django project is oscarator. There is one Django app, main, with all
business logic. Application CLI commands are generally divided into two
categories, those under python manage.py and those under make.
This project is configured using Nix and direnv and venv. After cd-ing into it:
pip install -r requirements_dev.txtOr for production use:
pip install -r requirements.txt
This project also uses pip-tools for dependency management.
To run the Django development server:
python manage.py runserverOne can create a new file named .envrc in the root of this project. An example
of what this file should look like exists, named .envrc.example.
These are the environment variables supported. The only one that is required is the database URL.
DATABASE_URL=postgres://username:password@localhost:5432/oscarator
SECRET_KEY=thisisthesecretkey
EMAIL_HOST_USER=smtp_user
EMAIL_HOST_PASSWORD=smtp_password
DEBUG=1
This project uses PostgreSQL. See above on how to configure it using the
.envrc file.
After creating your local database, you need to apply the migrations:
python manage.py migrateThe following tools are used for code linting and formatting:
To use:
make format
make lintThis software is licensed under the MIT license. For more information, read the LICENSE file.