fix template warning

This commit is contained in:
virusdefender 2016-01-26 12:58:08 +08:00
parent 5e73f60381
commit 1b25092cb4
3 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ ALLOWED_HOSTS = []
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"}

View File

@ -52,7 +52,7 @@ ALLOWED_HOSTS = ['*']
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')

View File

@ -83,7 +83,7 @@ ROOT_URLCONF = 'oj.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': TEMPLATE_DIRS,
'DIRS': OJ_TEMPLATE_DIRS,
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [