LQD Online Judge
Find a file
2021-01-02 02:29:58 -06:00
.github/workflows Cloned DMOJ 2020-01-21 15:35:58 +09:00
chat_box Add SSL flexibility to chat server 2020-10-26 14:39:47 -05:00
django_ace Cloned DMOJ 2020-01-21 15:35:58 +09:00
dmoj Add organization private pages 2020-12-27 23:45:58 -06:00
judge Add full name to user tables 2020-12-29 20:29:50 -06:00
locale Add full name to user tables 2020-12-29 20:29:50 -06:00
resources Add full name to user tables 2020-12-29 20:29:50 -06:00
templates Add full name to user tables 2020-12-29 20:29:50 -06:00
validator_template Handle AC display in partial checker 2020-07-29 16:36:54 -05:00
websocket change contest testcases visibility 2020-04-10 01:30:19 -05:00
.browserslistrc Cloned DMOJ 2020-01-21 15:35:58 +09:00
.flake8 Cloned DMOJ 2020-01-21 15:35:58 +09:00
.gitignore Add SSL flexibility to chat server 2020-10-26 14:39:47 -05:00
.gitmodules Cloned DMOJ 2020-01-21 15:35:58 +09:00
502.html fix icon 2020-03-17 23:57:57 -06:00
django_2_2_pymysql_patch.py Cloned DMOJ 2020-01-21 15:35:58 +09:00
dmoj_bridge_async.py Update bridge (DMOJ) 2020-07-19 16:27:14 -05:00
dmoj_celery.py Cloned DMOJ 2020-01-21 15:35:58 +09:00
dmoj_install_pymysql.py Cloned DMOJ 2020-01-21 15:35:58 +09:00
LICENSE Update AGPLv3 license 2020-01-21 15:44:20 +09:00
logo.png Update logo 2020-04-26 15:54:17 +00:00
make_style.sh change styles 2020-03-16 01:56:55 -06:00
manage.py Cloned DMOJ 2020-01-21 15:35:58 +09:00
manifest.json Cloned DMOJ 2020-01-21 15:35:58 +09:00
README.md Update README.md 2021-01-02 02:29:58 -06:00
requirements.txt Add version of channels to requirements.txt 2020-12-22 22:49:57 -06:00
robots.txt Cloned DMOJ 2020-01-21 15:35:58 +09:00

LQDOJ: Le Quy Don Online Judge

Python OS

Overview

Homepage: https://lqdoj.edu.vn

Based on DMOJ.

Supported languages:

  • Assembly (x64)
  • AWK
  • C
  • C++03 / C++11 / C++14 / C++17
  • Java 11
  • Pascal
  • Perl
  • Python 2 / Python 3

Support plagiarism detection via Stanford MOSS.

Installation

Most of the setup are the same as DMOJ installations. You can view the installation guide of DMOJ here: https://docs.dmoj.ca/#/site/installation. There is one minor change: Instead of git clone https://github.com/DMOJ/site.git, you clone this repo git clone https://github.com/LQDJudge/online-judge.git.

Some frequent difficulties when installation:

  1. Missing the local_settings.py. You need to copy the local_settings.py in order to pass the check.
  2. Missing the problem folder in local_settings.py. You need to create a folder to contain all problem packages and configure in local_settings.py.
  3. Missing static folder in local_settings.py. Similar to problem folder, make sure to configure STATIC_FILES inside local_settings.py.
  4. Missing configure file for judges. Each judge must have a seperate configure file. To create this file, you can run python dmojauto-conf. Checkout all sample files here https://github.com/DMOJ/docs/blob/master/sample_files.

Usage

Suppose you finished all the installation. Everytime you want to run a local server, follow these steps:

  1. Activate virtualenv:
source dmojsite/bin/activate
  1. Run server:
python manage.py runserver 0.0.0.0:8000
  1. Create a bridge (this is opened in a different terminal with the second step if you are using the same machine)
python manage.py runbridged
  1. Create a judge (another terminal)
dmoj 0.0.0.0 -p 9999 -c <path to yml configure file>

Here we suppose you use the default port 9999 for bridge in settings.py. You can create multiple judges, each should be in a seperate terminal.

Deploy

Most of the steps are similar to Django tutorials. Here are two usual steps:

  1. Update vietnamese translation:
  • go to locale/vi
  • modify .po file
  • bash python manage.py compilemessages
  • bash python manage.py compilejsi18n
  1. Update styles (using SASS)
  • Change .css/.scss files in resources folder
  • bash ./make_styles && python manage.py collectstatic
  • Sometimes you need to Ctrl + F5 to see the new user interface in browser.

Screenshots

Leaderboard

Leaderboard with information about contest rating, performance points and real name of all users.

Admin dashboard

Admin dashboard helps you easily managing problems, users, contests and blog posts.

Statement editor

You can write the problems' statement in Markdown with LaTeX figures and formulas supported.

Chat

Users can communicate with each other and can see who's online.