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

xtfc/compytition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Programming contest server in Python.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published