mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2025-11-04 14:49:58 +08:00
fix template warning
This commit is contained in:
parent
5e73f60381
commit
1b25092cb4
@ -43,7 +43,7 @@ ALLOWED_HOSTS = []
|
|||||||
STATICFILES_DIRS = [os.path.join(BASE_DIR, "static/src/"), BASE_DIR]
|
STATICFILES_DIRS = [os.path.join(BASE_DIR, "static/src/"), BASE_DIR]
|
||||||
|
|
||||||
# 模板文件夹
|
# 模板文件夹
|
||||||
TEMPLATE_DIRS = [os.path.join(BASE_DIR, 'template/src/')]
|
OJ_TEMPLATE_DIRS = [os.path.join(BASE_DIR, 'template/src/')]
|
||||||
|
|
||||||
SSO = {"callback": "http://localhost:8765/login"}
|
SSO = {"callback": "http://localhost:8765/login"}
|
||||||
|
|
||||||
|
|||||||
@ -52,7 +52,7 @@ ALLOWED_HOSTS = ['*']
|
|||||||
STATICFILES_DIRS = [os.path.join(BASE_DIR, "static/release/"), os.path.join(BASE_DIR, "static/release/")]
|
STATICFILES_DIRS = [os.path.join(BASE_DIR, "static/release/"), os.path.join(BASE_DIR, "static/release/")]
|
||||||
|
|
||||||
# 模板文件夹
|
# 模板文件夹
|
||||||
TEMPLATE_DIRS = [os.path.join(BASE_DIR, 'template/release/')]
|
OJ_TEMPLATE_DIRS = [os.path.join(BASE_DIR, 'template/release/')]
|
||||||
|
|
||||||
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
|
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
|
||||||
|
|
||||||
|
|||||||
@ -83,7 +83,7 @@ ROOT_URLCONF = 'oj.urls'
|
|||||||
TEMPLATES = [
|
TEMPLATES = [
|
||||||
{
|
{
|
||||||
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
||||||
'DIRS': TEMPLATE_DIRS,
|
'DIRS': OJ_TEMPLATE_DIRS,
|
||||||
'APP_DIRS': True,
|
'APP_DIRS': True,
|
||||||
'OPTIONS': {
|
'OPTIONS': {
|
||||||
'context_processors': [
|
'context_processors': [
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user