From 17637e7543440164fe0ecbc4d1e7f21832cb6ba9 Mon Sep 17 00:00:00 2001 From: Tran Trong Nghia <80335335+emladevops@users.noreply.github.com> Date: Wed, 28 Dec 2022 18:05:14 +0700 Subject: [PATCH 1/3] Update README.md #45 Fixed --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index ae36af5..acf4240 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,18 @@ There is one minor change: Instead of `git clone https://github.com/DMOJ/site.gi 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. +5. Missing timezone data for SQL. If you're using Ubuntu and you're following DMOJ's installation guide for the server, and you are getting the error mentioned in https://github.com/LQDJudge/online-judge/issues/45, then you can follow this method to fix: +```bash +mysql +-- You may have to do this if you haven't set root password for MySQL, replace mypass with your password +-- SET PASSWORD FOR 'root'@'localhost' = PASSWORD('mypass'); +-- FLUSH PRIVILEGES; +exit +mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -D mysql -u root -p +mysql -u root -p -e "flush tables;" mysql +``` + + ## Usage From e8d5f592671f81ca0d527961baf30f7e9f5efed4 Mon Sep 17 00:00:00 2001 From: Tran Trong Nghia <80335335+emladevops@users.noreply.github.com> Date: Wed, 28 Dec 2022 20:56:58 +0700 Subject: [PATCH 2/3] Fancier README.md Better images --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index acf4240..6f91813 100644 --- a/README.md +++ b/README.md @@ -107,7 +107,8 @@ Most of the steps are similar to Django tutorials. Here are two usual steps: Leaderboard with information about contest rating, performance points and real name of all users. -![](https://i.imgur.com/SeUiXKQ.png) +![](https://i.imgur.com/ZPBYMFX.png#gh-light-mode-only) +![](https://i.imgur.com/frahT9E.png#gh-dark-mode-only) ### Admin dashboard @@ -125,4 +126,5 @@ You can write the problems' statement in Markdown with LaTeX figures and formula Users can communicate with each other and can see who's online. -![](https://i.imgur.com/wvOjlLx.png) +![](https://i.imgur.com/fittEN3.png#gh-light-mode-only) +![](https://i.imgur.com/SXITCuK.png#gh-dark-mode-only) From 6faa39affdd7bbc0fadf7fce4e924bed1085ff2d Mon Sep 17 00:00:00 2001 From: Tran Trong Nghia <80335335+emladevops@users.noreply.github.com> Date: Wed, 28 Dec 2022 21:01:20 +0700 Subject: [PATCH 3/3] Images hosted on GitHub --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6f91813..cf8ce3a 100644 --- a/README.md +++ b/README.md @@ -107,8 +107,8 @@ Most of the steps are similar to Django tutorials. Here are two usual steps: Leaderboard with information about contest rating, performance points and real name of all users. -![](https://i.imgur.com/ZPBYMFX.png#gh-light-mode-only) -![](https://i.imgur.com/frahT9E.png#gh-dark-mode-only) +![](https://raw.githubusercontent.com/emladevops/LQDOJ-image/main/brave_SK67WA26FA.png#gh-light-mode-only) +![](https://raw.githubusercontent.com/emladevops/LQDOJ-image/main/brave_cmqqCnwaFc.png#gh-dark-mode-only) ### Admin dashboard @@ -126,5 +126,5 @@ You can write the problems' statement in Markdown with LaTeX figures and formula Users can communicate with each other and can see who's online. -![](https://i.imgur.com/fittEN3.png#gh-light-mode-only) -![](https://i.imgur.com/SXITCuK.png#gh-dark-mode-only) +![](https://raw.githubusercontent.com/emladevops/LQDOJ-image/main/brave_kPsC5bJluc.png#gh-light-mode-only) +![](https://raw.githubusercontent.com/emladevops/LQDOJ-image/main/brave_AtrEzXzEAx.png#gh-dark-mode-only)