Skip to content
This repository has been archived by the owner on Aug 29, 2019. It is now read-only.

Latest commit

 

History

History
59 lines (37 loc) · 1.08 KB

README.md

File metadata and controls

59 lines (37 loc) · 1.08 KB

Compytition

Programming contest server in Python.

Setup

Install dependencies (with sudo or inside of a virtualenv):

$ pip install -U -r requirements.txt

pip can usually be found in your distribution's python-pip package. If you want to use LDAP authentication (currently the only supported method), you will also need the python-ldap package.

Run the setup script

$ bump setup

Configure the server:

Copy compytition/config.py.example to compytition/config.py and edit it. If you have $EDITOR set, this will do the work for you:

$ bump config

Create a new contest:

$ bump db.new <name>

Add / edit questions:

Throw text files (with Markdown, if you'd like) into contests/<name>/questions/ with no extension.

Create contest database:

$ bump db.init <name>

Run the server:

For debug or development:

Do not use this for hosting contests! It allows execution of arbitrary Python code on the host.

$ bump debug

For production:

$ bump run