From 6f2b0316fd47fff26b9da0fbb849990859177f0f Mon Sep 17 00:00:00 2001 From: thanhluong Date: Mon, 24 Feb 2020 19:42:05 +0900 Subject: [PATCH 1/3] Update template and .gitignore --- .gitignore | 2 +- templates/about/about.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 8cfbd3f..e8b3edc 100644 --- a/.gitignore +++ b/.gitignore @@ -5,7 +5,7 @@ *.py[co] *.mo *~ -# dmoj/local_settings.py +dmoj/local_settings.py resources/style.css resources/content-description.css resources/ranks.css diff --git a/templates/about/about.html b/templates/about/about.html index 70b97b9..50bf6fa 100644 --- a/templates/about/about.html +++ b/templates/about/about.html @@ -1,7 +1,7 @@ {% extends "base.html" %} {% block body %} -

- I am cuom1999. -

+ + Le Quy Don's online judge. + {% endblock %} \ No newline at end of file From c54405b6388a5a096170037a69a439d919c6c4ff Mon Sep 17 00:00:00 2001 From: Luong Doan Date: Mon, 24 Feb 2020 19:46:32 +0900 Subject: [PATCH 2/3] Update README --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9d90172..2f18197 100644 --- a/README.md +++ b/README.md @@ -15,8 +15,8 @@ python dmojauto-conf + python manage.py runbridged + dmoj 0.0.0.0 -p 9999 -c judge/conf1.yml (depend on port in the local_settings.py and directory of conf file) -### 7. Change vietnamese: - - go to /home/cuom1999/DMOJ/site/locale/vi - - open .po file +### 7. Update vietnamese translation: + - go to locale/vi + - modify .po file - python manage.py compilemessages - python manage.py compilejsi18n From fe78a57906881edebdc8630e1f63bb7e4de7cadf Mon Sep 17 00:00:00 2001 From: thanhluong Date: Tue, 25 Feb 2020 01:10:57 +0900 Subject: [PATCH 3/3] Modify name settings --- dmoj/local_settings.py | 20 ++++++++++---------- dmoj/settings.py | 6 +++--- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/dmoj/local_settings.py b/dmoj/local_settings.py index 607c415..703b965 100755 --- a/dmoj/local_settings.py +++ b/dmoj/local_settings.py @@ -24,7 +24,7 @@ INSTALLED_APPS += ( ) #path to problem folder -DMOJ_PROBLEM_DATA_ROOT = '/home/cuom1999/DMOJ/problems' +DMOJ_PROBLEM_DATA_ROOT = '/home/Projects/CP/LQDJudge/problems' # Caching. You can use memcached or redis instead. # Documentation: @@ -38,10 +38,10 @@ CACHES = { # Documentation: DATABASES = { 'default': { - 'ENGINE': 'django.db.backends.mysql', + 'ENGINE': 'django.db.backends.mysql', 'NAME': 'dmoj', 'USER': 'dmoj', - 'PASSWORD': '', + 'PASSWORD': 'admintl97p1', 'HOST': '127.0.0.1', 'OPTIONS': { 'charset': 'utf8mb4', @@ -56,8 +56,8 @@ DATABASES = { # Internationalization. # Documentation: -LANGUAGE_CODE = 'en-ca' -DEFAULT_USER_TIME_ZONE = 'America/Mexico_City' +LANGUAGE_CODE = 'vi' +DEFAULT_USER_TIME_ZONE = 'Asia/Ho_Chi_Minh' USE_I18N = True USE_L10N = True USE_TZ = True @@ -108,11 +108,11 @@ EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' # A tuple of (name, email) pairs that specifies those who will be mailed # when the server experiences an error when DEBUG = False. ADMINS = ( - ('cuom1999', 'your.email@example.com'), + ('luongd', 'doannguyenthanhluong@gmail.com'), ) # The sender for the aforementioned emails. -SERVER_EMAIL = 'DMOJ: Modern Online Judge ' +SERVER_EMAIL = 'LQDOJ: Le Quy Don Online Judge ' ################################################## @@ -124,7 +124,7 @@ SERVER_EMAIL = 'DMOJ: Modern Online Judge ' # webserver to serve the static files. This is the directory where all the # static files DMOJ uses will be collected to. # You must configure your webserver to serve this directory as /static/ in production. -STATIC_ROOT = '/home/cuom1999/DMOJ/static_root' +STATIC_ROOT = '/home/luongd/Projects/LQDJudge/online-judge/static_root' # URL to access static files. #STATIC_URL = '/static/' @@ -137,8 +137,8 @@ STATIC_ROOT = '/home/cuom1999/DMOJ/static_root' ############################################ ## DMOJ site display settings. -SITE_NAME = 'FOOJ' -SITE_LONG_NAME = 'FOOJ: Modern Online Judge' +SITE_NAME = 'LQDOJ' +SITE_LONG_NAME = 'LQDOJ: Le Quy Don Online Judge' SITE_ADMIN_EMAIL = 'admin@example.com' TERMS_OF_SERVICE_URL = '//dmoj.ca/tos' # Use a flatpage. diff --git a/dmoj/settings.py b/dmoj/settings.py index 1e9ab27..dd0b32e 100644 --- a/dmoj/settings.py +++ b/dmoj/settings.py @@ -30,8 +30,8 @@ DEBUG = True ALLOWED_HOSTS = [] SITE_ID = 1 -SITE_NAME = 'DMOJ' -SITE_LONG_NAME = 'DMOJ: Modern Online Judge' +SITE_NAME = 'LQDOJ' +SITE_LONG_NAME = 'LQDOJ: Le Quy Don Online Judge' SITE_ADMIN_EMAIL = False DMOJ_REQUIRE_STAFF_2FA = True @@ -145,7 +145,7 @@ else: WPADMIN = { 'admin': { - 'title': 'DMOJ Admin', + 'title': 'LQDOJ Admin', 'menu': { 'top': 'wpadmin.menu.menus.BasicTopMenu', 'left': 'wpadmin.menu.custom.CustomModelLeftMenuWithDashboard',