admin webpack template
This commit is contained in:
@@ -33,7 +33,7 @@ ALLOWED_HOSTS = []
|
||||
|
||||
# 在 debug 关闭的情况下,静态文件不是有 django runserver 来处理的,应该由 nginx 返回
|
||||
# 在 debug 开启的情况下,django 会在下面两个文件夹中寻找对应的静态文件。
|
||||
STATICFILES_DIRS = [os.path.join(BASE_DIR, "static/src/"), BASE_DIR]
|
||||
STATICFILES_DIRS = [os.path.join(BASE_DIR, "frontend/static/"), BASE_DIR]
|
||||
|
||||
# 模板文件夹
|
||||
OJ_TEMPLATE_DIRS = [os.path.join(BASE_DIR, 'template/src/')]
|
||||
|
||||
@@ -53,12 +53,6 @@ INSTALLED_APPS = (
|
||||
'rest_framework',
|
||||
)
|
||||
|
||||
if DEBUG:
|
||||
INSTALLED_APPS += (
|
||||
# 'debug_toolbar',
|
||||
'rest_framework_swagger',
|
||||
)
|
||||
|
||||
MIDDLEWARE_CLASSES = (
|
||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||
'django.middleware.common.CommonMiddleware',
|
||||
|
||||
Reference in New Issue
Block a user