Modify name settings

This commit is contained in:
thanhluong 2020-02-25 01:10:57 +09:00
parent 6f2b0316fd
commit fe78a57906
No known key found for this signature in database
GPG key ID: DE43DC5D6EAD4368
2 changed files with 13 additions and 13 deletions

View file

@ -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: <https://docs.djangoproject.com/en/1.11/topics/cache/>
@ -41,7 +41,7 @@ DATABASES = {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'dmoj',
'USER': 'dmoj',
'PASSWORD': '<password>',
'PASSWORD': 'admintl97p1',
'HOST': '127.0.0.1',
'OPTIONS': {
'charset': 'utf8mb4',
@ -56,8 +56,8 @@ DATABASES = {
# Internationalization.
# Documentation: <https://docs.djangoproject.com/en/1.11/topics/i18n/>
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 <errors@dmoj.ca>'
SERVER_EMAIL = 'LQDOJ: Le Quy Don Online Judge <errors@lqdoj.com>'
##################################################
@ -124,7 +124,7 @@ SERVER_EMAIL = 'DMOJ: Modern Online Judge <errors@dmoj.ca>'
# 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.

View file

@ -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',