Skip to content

CHT-OJ/oj

This branch is 1 commit ahead of, 34 commits behind master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

98587de · Oct 12, 2024
Sep 29, 2024
Feb 18, 2023
Oct 12, 2024
Oct 6, 2024
Sep 30, 2024
Oct 12, 2024
Oct 3, 2023
Oct 12, 2024
Oct 6, 2023
Sep 24, 2019
Jun 2, 2020
Sep 29, 2024
Sep 7, 2024
Oct 5, 2024
Sep 12, 2023
Sep 12, 2023
Sep 12, 2023
Sep 30, 2014
Sep 30, 2024
Sep 13, 2023
Oct 3, 2020
Apr 26, 2021
Jan 27, 2023
Jan 27, 2023
Jan 27, 2023
Jul 23, 2024
Mar 15, 2021
Oct 30, 2023
Jan 27, 2023
Sep 30, 2024
Sep 30, 2024
Oct 12, 2024
Jun 6, 2020

Repository files navigation

CHTOJ: CHUYÊN HÀ TĨNH Online Judge

Build Status AGPL License Discord link

As a fork of DMOJ, CHTOJ serves as CHTOJ's official online judge and hosts its programming contests.

See it live at oj.thptchuyenhatinh.edu.vn!

Features

Check out its features here.

Installation

Refer to the install documentation here. Almost all installation steps remain the same as the docs, but there are several minor differences, including cloning this repo instead of DMOJ's repo.

Additional installation steps

  • You have to define DMOJ_PROBLEM_DATA_ROOT in local_settings.py, which should be the path to the directory that contains your problems' tests.

  • Regarding disabling full-text search, please read this issue for more information.

  • To sync the judge server and the site's cache, change the cache framework (CACHES) to memcached or redis instead of the default (local-memory caching).

  • If you use python3 manage.py loaddata demo, the home button in the admin dashboard (/admin) links you to localhost:8081, there are 2 ways to change that:

    1. You can change that in demo.json
    2. You can go to the admin page, scroll down to find the Sites setting and change localhost:8081 to your domain.
  • To support testlib.h, you need to copy testlib.h to g++'s include path in the judge server. To speed up compile time, you can also create a precompiled header for testlib.h.

Contributing PR's Welcome

Take a look at our contribution guideline.

If you find any bug, please feel free to contact us via Discord Discord Chat or open an issue.

Pull requests are welcome as well. Before you submit your PR, please check your code with flake8 and format it if needed. There's also prettier if you need to format JS code (in websocket/).

Translation contributions are also welcome.